function YS(){import.meta.url,import("_").catch(()=>1),async function*(){}().next()}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function vv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Af={exports:{}},Xl={},If={exports:{}},re={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var mi=Symbol.for("react.element"),gv=Symbol.for("react.portal"),yv=Symbol.for("react.fragment"),wv=Symbol.for("react.strict_mode"),kv=Symbol.for("react.profiler"),Ev=Symbol.for("react.provider"),Sv=Symbol.for("react.context"),Cv=Symbol.for("react.forward_ref"),_v=Symbol.for("react.suspense"),Pv=Symbol.for("react.memo"),xv=Symbol.for("react.lazy"),_c=Symbol.iterator;function Nv(e){return e===null||typeof e!="object"?null:(e=_c&&e[_c]||e["@@iterator"],typeof e=="function"?e:null)}var Lf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mf=Object.assign,Of={};function oo(e,t,n){this.props=e,this.context=t,this.refs=Of,this.updater=n||Lf}oo.prototype.isReactComponent={};oo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};oo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bf(){}Bf.prototype=oo.prototype;function pu(e,t,n){this.props=e,this.context=t,this.refs=Of,this.updater=n||Lf}var hu=pu.prototype=new Bf;hu.constructor=pu;Mf(hu,oo.prototype);hu.isPureReactComponent=!0;var Pc=Array.isArray,Df=Object.prototype.hasOwnProperty,mu={current:null},bf={key:!0,ref:!0,__self:!0,__source:!0};function zf(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Df.call(t,r)&&!bf.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:mi,type:e,key:i,ref:l,props:o,_owner:mu.current}}function Tv(e,t){return{$$typeof:mi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function vu(e){return typeof e=="object"&&e!==null&&e.$$typeof===mi}function Rv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var xc=/\/+/g;function ka(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Rv(""+e.key):t.toString(36)}function el(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case mi:case gv:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+ka(l,0):r,Pc(o)?(n="",e!=null&&(n=e.replace(xc,"$&/")+"/"),el(o,t,n,"",function(c){return c})):o!=null&&(vu(o)&&(o=Tv(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(xc,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Pc(e))for(var a=0;a<e.length;a++){i=e[a];var s=r+ka(i,a);l+=el(i,t,n,s,o)}else if(s=Nv(e),typeof s=="function")for(e=s.call(e),a=0;!(i=e.next()).done;)i=i.value,s=r+ka(i,a++),l+=el(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Mi(e,t,n){if(e==null)return e;var r=[],o=0;return el(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Av(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var at={current:null},tl={transition:null},Iv={ReactCurrentDispatcher:at,ReactCurrentBatchConfig:tl,ReactCurrentOwner:mu};re.Children={map:Mi,forEach:function(e,t,n){Mi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Mi(e,function(){t++}),t},toArray:function(e){return Mi(e,function(t){return t})||[]},only:function(e){if(!vu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};re.Component=oo;re.Fragment=yv;re.Profiler=kv;re.PureComponent=pu;re.StrictMode=wv;re.Suspense=_v;re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Iv;re.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Mf({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=mu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)Df.call(t,s)&&!bf.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){a=Array(s);for(var c=0;c<s;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:mi,type:e.type,key:o,ref:i,props:r,_owner:l}};re.createContext=function(e){return e={$$typeof:Sv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ev,_context:e},e.Consumer=e};re.createElement=zf;re.createFactory=function(e){var t=zf.bind(null,e);return t.type=e,t};re.createRef=function(){return{current:null}};re.forwardRef=function(e){return{$$typeof:Cv,render:e}};re.isValidElement=vu;re.lazy=function(e){return{$$typeof:xv,_payload:{_status:-1,_result:e},_init:Av}};re.memo=function(e,t){return{$$typeof:Pv,type:e,compare:t===void 0?null:t}};re.startTransition=function(e){var t=tl.transition;tl.transition={};try{e()}finally{tl.transition=t}};re.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};re.useCallback=function(e,t){return at.current.useCallback(e,t)};re.useContext=function(e){return at.current.useContext(e)};re.useDebugValue=function(){};re.useDeferredValue=function(e){return at.current.useDeferredValue(e)};re.useEffect=function(e,t){return at.current.useEffect(e,t)};re.useId=function(){return at.current.useId()};re.useImperativeHandle=function(e,t,n){return at.current.useImperativeHandle(e,t,n)};re.useInsertionEffect=function(e,t){return at.current.useInsertionEffect(e,t)};re.useLayoutEffect=function(e,t){return at.current.useLayoutEffect(e,t)};re.useMemo=function(e,t){return at.current.useMemo(e,t)};re.useReducer=function(e,t,n){return at.current.useReducer(e,t,n)};re.useRef=function(e){return at.current.useRef(e)};re.useState=function(e){return at.current.useState(e)};re.useSyncExternalStore=function(e,t,n){return at.current.useSyncExternalStore(e,t,n)};re.useTransition=function(){return at.current.useTransition()};re.version="18.2.0";If.exports=re;var u=If.exports;const nl=vv(u);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Lv=u,Mv=Symbol.for("react.element"),Ov=Symbol.for("react.fragment"),Bv=Object.prototype.hasOwnProperty,Dv=Lv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bv={key:!0,ref:!0,__self:!0,__source:!0};function Hf(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Bv.call(t,r)&&!bv.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Mv,type:e,key:i,ref:l,props:o,_owner:Dv.current}}Xl.Fragment=Ov;Xl.jsx=Hf;Xl.jsxs=Hf;Af.exports=Xl;var ae=Af.exports,Ff={exports:{}},_t={},Vf={exports:{}},Wf={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(R,F){var U=R.length;R.push(F);e:for(;0<U;){var Z=U-1>>>1,B=R[Z];if(0<o(B,F))R[Z]=F,R[U]=B,U=Z;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var F=R[0],U=R.pop();if(U!==F){R[0]=U;e:for(var Z=0,B=R.length,se=B>>>1;Z<se;){var ie=2*(Z+1)-1,Ee=R[ie],fe=ie+1,Be=R[fe];if(0>o(Ee,U))fe<B&&0>o(Be,Ee)?(R[Z]=Be,R[fe]=U,Z=fe):(R[Z]=Ee,R[ie]=U,Z=ie);else if(fe<B&&0>o(Be,U))R[Z]=Be,R[fe]=U,Z=fe;else break e}}return F}function o(R,F){var U=R.sortIndex-F.sortIndex;return U!==0?U:R.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],c=[],d=1,h=null,p=3,v=!1,w=!1,k=!1,C=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(R){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=R)r(c),F.sortIndex=F.expirationTime,t(s,F);else break;F=n(c)}}function _(R){if(k=!1,g(R),!w)if(n(s)!==null)w=!0,ne(T);else{var F=n(c);F!==null&&z(_,F.startTime-R)}}function T(R,F){w=!1,k&&(k=!1,f(P),P=-1),v=!0;var U=p;try{for(g(F),h=n(s);h!==null&&(!(h.expirationTime>F)||R&&!j());){var Z=h.callback;if(typeof Z=="function"){h.callback=null,p=h.priorityLevel;var B=Z(h.expirationTime<=F);F=e.unstable_now(),typeof B=="function"?h.callback=B:h===n(s)&&r(s),g(F)}else r(s);h=n(s)}if(h!==null)var se=!0;else{var ie=n(c);ie!==null&&z(_,ie.startTime-F),se=!1}return se}finally{h=null,p=U,v=!1}}var y=!1,N=null,P=-1,O=5,D=-1;function j(){return!(e.unstable_now()-D<O)}function J(){if(N!==null){var R=e.unstable_now();D=R;var F=!0;try{F=N(!0,R)}finally{F?oe():(y=!1,N=null)}}else y=!1}var oe;if(typeof m=="function")oe=function(){m(J)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,Y=W.port2;W.port1.onmessage=J,oe=function(){Y.postMessage(null)}}else oe=function(){C(J,0)};function ne(R){N=R,y||(y=!0,oe())}function z(R,F){P=C(function(){R(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){w||v||(w=!0,ne(T))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(R){switch(p){case 1:case 2:case 3:var F=3;break;default:F=p}var U=p;p=F;try{return R()}finally{p=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,F){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var U=p;p=R;try{return F()}finally{p=U}},e.unstable_scheduleCallback=function(R,F,U){var Z=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?Z+U:Z):U=Z,R){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=U+B,R={id:d++,callback:F,priorityLevel:R,startTime:U,expirationTime:B,sortIndex:-1},U>Z?(R.sortIndex=U,t(c,R),n(s)===null&&R===n(c)&&(k?(f(P),P=-1):k=!0,z(_,U-Z))):(R.sortIndex=B,t(s,R),w||v||(w=!0,ne(T))),R},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(R){var F=p;return function(){var U=p;p=F;try{return R.apply(this,arguments)}finally{p=U}}}})(Wf);Vf.exports=Wf;var zv=Vf.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var jf=u,Ct=zv;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Uf=new Set,Qo={};function vr(e,t){Gr(e,t),Gr(e+"Capture",t)}function Gr(e,t){for(Qo[e]=t,e=0;e<t.length;e++)Uf.add(t[e])}var un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),os=Object.prototype.hasOwnProperty,Hv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Nc={},Tc={};function Fv(e){return os.call(Tc,e)?!0:os.call(Nc,e)?!1:Hv.test(e)?Tc[e]=!0:(Nc[e]=!0,!1)}function Vv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wv(e,t,n,r){if(t===null||typeof t>"u"||Vv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function st(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qe[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qe[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new st(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qe[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var gu=/[\-:]([a-z])/g;function yu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(gu,yu);qe[t]=new st(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gu,yu);qe[t]=new st(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gu,yu);qe[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});qe.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function wu(e,t,n,r){var o=qe.hasOwnProperty(t)?qe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Wv(t,n,o,r)&&(n=null),r||o===null?Fv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var pn=jf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Oi=Symbol.for("react.element"),xr=Symbol.for("react.portal"),Nr=Symbol.for("react.fragment"),ku=Symbol.for("react.strict_mode"),is=Symbol.for("react.profiler"),Kf=Symbol.for("react.provider"),$f=Symbol.for("react.context"),Eu=Symbol.for("react.forward_ref"),ls=Symbol.for("react.suspense"),as=Symbol.for("react.suspense_list"),Su=Symbol.for("react.memo"),xn=Symbol.for("react.lazy"),Yf=Symbol.for("react.offscreen"),Rc=Symbol.iterator;function yo(e){return e===null||typeof e!="object"?null:(e=Rc&&e[Rc]||e["@@iterator"],typeof e=="function"?e:null)}var Ne=Object.assign,Ea;function Lo(e){if(Ea===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ea=t&&t[1]||""}return"\n"+Ea+e}var Sa=!1;function Ca(e,t){if(!e||Sa)return"";Sa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),l=o.length-1,a=i.length-1;1<=l&&0<=a&&o[l]!==i[a];)a--;for(;1<=l&&0<=a;l--,a--)if(o[l]!==i[a]){if(l!==1||a!==1)do if(l--,a--,0>a||o[l]!==i[a]){var s="\n"+o[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{Sa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Lo(e):""}function jv(e){switch(e.tag){case 5:return Lo(e.type);case 16:return Lo("Lazy");case 13:return Lo("Suspense");case 19:return Lo("SuspenseList");case 0:case 2:case 15:return e=Ca(e.type,!1),e;case 11:return e=Ca(e.type.render,!1),e;case 1:return e=Ca(e.type,!0),e;default:return""}}function ss(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nr:return"Fragment";case xr:return"Portal";case is:return"Profiler";case ku:return"StrictMode";case ls:return"Suspense";case as:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $f:return(e.displayName||"Context")+".Consumer";case Kf:return(e._context.displayName||"Context")+".Provider";case Eu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Su:return t=e.displayName||null,t!==null?t:ss(e.type)||"Memo";case xn:t=e._payload,e=e._init;try{return ss(e(t))}catch(n){}}return null}function Uv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ss(t);case 8:return t===ku?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kv(e){var t=Xf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bi(e){e._valueTracker||(e._valueTracker=Kv(e))}function Gf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function us(e,t){var n=t.checked;return Ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Ac(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qf(e,t){t=t.checked,t!=null&&wu(e,"checked",t,!1)}function cs(e,t){Qf(e,t);var n=Vn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ds(e,t.type,n):t.hasOwnProperty("defaultValue")&&ds(e,t.type,Vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ic(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ds(e,t,n){(t!=="number"||gl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mo=Array.isArray;function Wr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Vn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function fs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return Ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Lc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(Mo(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Vn(n)}}function Zf(e,t){var n=Vn(t.value),r=Vn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Mc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function qf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ps(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?qf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Di,Jf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Di=Di||document.createElement("div"),Di.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Di.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$v=["Webkit","ms","Moz","O"];Object.keys(bo).forEach(function(e){$v.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bo[t]=bo[e]})});function ep(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bo.hasOwnProperty(e)&&bo[e]?(""+t).trim():t+"px"}function tp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ep(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Yv=Ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function hs(e,t){if(t){if(Yv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function ms(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vs=null;function Cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gs=null,jr=null,Ur=null;function Oc(e){if(e=yi(e)){if(typeof gs!="function")throw Error(A(280));var t=e.stateNode;t&&(t=Jl(t),gs(e.stateNode,e.type,t))}}function np(e){jr?Ur?Ur.push(e):Ur=[e]:jr=e}function rp(){if(jr){var e=jr,t=Ur;if(Ur=jr=null,Oc(e),t)for(e=0;e<t.length;e++)Oc(t[e])}}function op(e,t){return e(t)}function ip(){}var _a=!1;function lp(e,t,n){if(_a)return e(t,n);_a=!0;try{return op(e,t,n)}finally{_a=!1,(jr!==null||Ur!==null)&&(ip(),rp())}}function qo(e,t){var n=e.stateNode;if(n===null)return null;var r=Jl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var ys=!1;if(un)try{var wo={};Object.defineProperty(wo,"passive",{get:function(){ys=!0}}),window.addEventListener("test",wo,wo),window.removeEventListener("test",wo,wo)}catch(e){ys=!1}function Xv(e,t,n,r,o,i,l,a,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var zo=!1,yl=null,wl=!1,ws=null,Gv={onError:function(e){zo=!0,yl=e}};function Qv(e,t,n,r,o,i,l,a,s){zo=!1,yl=null,Xv.apply(Gv,arguments)}function Zv(e,t,n,r,o,i,l,a,s){if(Qv.apply(this,arguments),zo){if(zo){var c=yl;zo=!1,yl=null}else throw Error(A(198));wl||(wl=!0,ws=c)}}function gr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ap(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Bc(e){if(gr(e)!==e)throw Error(A(188))}function qv(e){var t=e.alternate;if(!t){if(t=gr(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Bc(o),e;if(i===r)return Bc(o),t;i=i.sibling}throw Error(A(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,a=o.child;a;){if(a===n){l=!0,n=o,r=i;break}if(a===r){l=!0,r=o,n=i;break}a=a.sibling}if(!l){for(a=i.child;a;){if(a===n){l=!0,n=i,r=o;break}if(a===r){l=!0,r=i,n=o;break}a=a.sibling}if(!l)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function sp(e){return e=qv(e),e!==null?up(e):null}function up(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=up(e);if(t!==null)return t;e=e.sibling}return null}var cp=Ct.unstable_scheduleCallback,Dc=Ct.unstable_cancelCallback,Jv=Ct.unstable_shouldYield,e0=Ct.unstable_requestPaint,Oe=Ct.unstable_now,t0=Ct.unstable_getCurrentPriorityLevel,_u=Ct.unstable_ImmediatePriority,dp=Ct.unstable_UserBlockingPriority,kl=Ct.unstable_NormalPriority,n0=Ct.unstable_LowPriority,fp=Ct.unstable_IdlePriority,Gl=null,Qt=null;function r0(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Gl,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Wt=Math.clz32?Math.clz32:l0,o0=Math.log,i0=Math.LN2;function l0(e){return e>>>=0,e===0?32:31-(o0(e)/i0|0)|0}var bi=64,zi=4194304;function Oo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function El(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=Oo(a):(i&=l,i!==0&&(r=Oo(i)))}else l=n&~o,l!==0?r=Oo(l):i!==0&&(r=Oo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Wt(t),o=1<<n,r|=e[n],t&=~o;return r}function a0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function s0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Wt(i),a=1<<l,s=o[l];s===-1?(!(a&n)||a&r)&&(o[l]=a0(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}}function ks(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function pp(){var e=bi;return bi<<=1,!(bi&4194240)&&(bi=64),e}function Pa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function u0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Wt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Pu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Wt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var pe=0;function hp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var mp,xu,vp,gp,yp,Es=!1,Hi=[],Mn=null,On=null,Bn=null,Jo=new Map,ei=new Map,Tn=[],c0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function bc(e,t){switch(e){case"focusin":case"focusout":Mn=null;break;case"dragenter":case"dragleave":On=null;break;case"mouseover":case"mouseout":Bn=null;break;case"pointerover":case"pointerout":Jo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ei.delete(t.pointerId)}}function ko(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=yi(t),t!==null&&xu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function d0(e,t,n,r,o){switch(t){case"focusin":return Mn=ko(Mn,e,t,n,r,o),!0;case"dragenter":return On=ko(On,e,t,n,r,o),!0;case"mouseover":return Bn=ko(Bn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Jo.set(i,ko(Jo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ei.set(i,ko(ei.get(i)||null,e,t,n,r,o)),!0}return!1}function wp(e){var t=tr(e.target);if(t!==null){var n=gr(t);if(n!==null){if(t=n.tag,t===13){if(t=ap(n),t!==null){e.blockedOn=t,yp(e.priority,function(){vp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ss(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vs=r,n.target.dispatchEvent(r),vs=null}else return t=yi(n),t!==null&&xu(t),e.blockedOn=n,!1;t.shift()}return!0}function zc(e,t,n){rl(e)&&n.delete(t)}function f0(){Es=!1,Mn!==null&&rl(Mn)&&(Mn=null),On!==null&&rl(On)&&(On=null),Bn!==null&&rl(Bn)&&(Bn=null),Jo.forEach(zc),ei.forEach(zc)}function Eo(e,t){e.blockedOn===t&&(e.blockedOn=null,Es||(Es=!0,Ct.unstable_scheduleCallback(Ct.unstable_NormalPriority,f0)))}function ti(e){function t(o){return Eo(o,e)}if(0<Hi.length){Eo(Hi[0],e);for(var n=1;n<Hi.length;n++){var r=Hi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Mn!==null&&Eo(Mn,e),On!==null&&Eo(On,e),Bn!==null&&Eo(Bn,e),Jo.forEach(t),ei.forEach(t),n=0;n<Tn.length;n++)r=Tn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Tn.length&&(n=Tn[0],n.blockedOn===null);)wp(n),n.blockedOn===null&&Tn.shift()}var Kr=pn.ReactCurrentBatchConfig,Sl=!0;function p0(e,t,n,r){var o=pe,i=Kr.transition;Kr.transition=null;try{pe=1,Nu(e,t,n,r)}finally{pe=o,Kr.transition=i}}function h0(e,t,n,r){var o=pe,i=Kr.transition;Kr.transition=null;try{pe=4,Nu(e,t,n,r)}finally{pe=o,Kr.transition=i}}function Nu(e,t,n,r){if(Sl){var o=Ss(e,t,n,r);if(o===null)Ba(e,t,r,Cl,n),bc(e,r);else if(d0(o,e,t,n,r))r.stopPropagation();else if(bc(e,r),t&4&&-1<c0.indexOf(e)){for(;o!==null;){var i=yi(o);if(i!==null&&mp(i),i=Ss(e,t,n,r),i===null&&Ba(e,t,r,Cl,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Ba(e,t,r,null,n)}}var Cl=null;function Ss(e,t,n,r){if(Cl=null,e=Cu(r),e=tr(e),e!==null)if(t=gr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ap(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Cl=e,null}function kp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(t0()){case _u:return 1;case dp:return 4;case kl:case n0:return 16;case fp:return 536870912;default:return 16}default:return 16}}var An=null,Tu=null,ol=null;function Ep(){if(ol)return ol;var e,t=Tu,n=t.length,r,o="value"in An?An.value:An.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return ol=o.slice(e,1<r?1-r:void 0)}function il(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fi(){return!0}function Hc(){return!1}function Pt(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Fi:Hc,this.isPropagationStopped=Hc,this}return Ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fi)},persist:function(){},isPersistent:Fi}),t}var io={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=Pt(io),gi=Ne({},io,{view:0,detail:0}),m0=Pt(gi),xa,Na,So,Ql=Ne({},gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Au,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==So&&(So&&e.type==="mousemove"?(xa=e.screenX-So.screenX,Na=e.screenY-So.screenY):Na=xa=0,So=e),xa)},movementY:function(e){return"movementY"in e?e.movementY:Na}}),Fc=Pt(Ql),v0=Ne({},Ql,{dataTransfer:0}),g0=Pt(v0),y0=Ne({},gi,{relatedTarget:0}),Ta=Pt(y0),w0=Ne({},io,{animationName:0,elapsedTime:0,pseudoElement:0}),k0=Pt(w0),E0=Ne({},io,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),S0=Pt(E0),C0=Ne({},io,{data:0}),Vc=Pt(C0),_0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},P0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},x0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=x0[e])?!!t[e]:!1}function Au(){return N0}var T0=Ne({},gi,{key:function(e){if(e.key){var t=_0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=il(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?P0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Au,charCode:function(e){return e.type==="keypress"?il(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?il(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),R0=Pt(T0),A0=Ne({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wc=Pt(A0),I0=Ne({},gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Au}),L0=Pt(I0),M0=Ne({},io,{propertyName:0,elapsedTime:0,pseudoElement:0}),O0=Pt(M0),B0=Ne({},Ql,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),D0=Pt(B0),b0=[9,13,27,32],Iu=un&&"CompositionEvent"in window,Ho=null;un&&"documentMode"in document&&(Ho=document.documentMode);var z0=un&&"TextEvent"in window&&!Ho,Sp=un&&(!Iu||Ho&&8<Ho&&11>=Ho),jc=" ",Uc=!1;function Cp(e,t){switch(e){case"keyup":return b0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _p(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function H0(e,t){switch(e){case"compositionend":return _p(t);case"keypress":return t.which!==32?null:(Uc=!0,jc);case"textInput":return e=t.data,e===jc&&Uc?null:e;default:return null}}function F0(e,t){if(Tr)return e==="compositionend"||!Iu&&Cp(e,t)?(e=Ep(),ol=Tu=An=null,Tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sp&&t.locale!=="ko"?null:t.data;default:return null}}var V0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Kc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!V0[e.type]:t==="textarea"}function Pp(e,t,n,r){np(r),t=_l(t,"onChange"),0<t.length&&(n=new Ru("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fo=null,ni=null;function W0(e){Dp(e,0)}function Zl(e){var t=Ir(e);if(Gf(t))return e}function j0(e,t){if(e==="change")return t}var xp=!1;if(un){var Ra;if(un){var Aa="oninput"in document;if(!Aa){var $c=document.createElement("div");$c.setAttribute("oninput","return;"),Aa=typeof $c.oninput=="function"}Ra=Aa}else Ra=!1;xp=Ra&&(!document.documentMode||9<document.documentMode)}function Yc(){Fo&&(Fo.detachEvent("onpropertychange",Np),ni=Fo=null)}function Np(e){if(e.propertyName==="value"&&Zl(ni)){var t=[];Pp(t,ni,e,Cu(e)),lp(W0,t)}}function U0(e,t,n){e==="focusin"?(Yc(),Fo=t,ni=n,Fo.attachEvent("onpropertychange",Np)):e==="focusout"&&Yc()}function K0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zl(ni)}function $0(e,t){if(e==="click")return Zl(t)}function Y0(e,t){if(e==="input"||e==="change")return Zl(t)}function X0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:X0;function ri(e,t){if(Ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!os.call(t,o)||!Ut(e[o],t[o]))return!1}return!0}function Xc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gc(e,t){var n=Xc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xc(n)}}function Tp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rp(){for(var e=window,t=gl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=gl(e.document)}return t}function Lu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function G0(e){var t=Rp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Tp(n.ownerDocument.documentElement,n)){if(r!==null&&Lu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Gc(n,i);var l=Gc(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Q0=un&&"documentMode"in document&&11>=document.documentMode,Rr=null,Cs=null,Vo=null,_s=!1;function Qc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_s||Rr==null||Rr!==gl(r)||(r=Rr,"selectionStart"in r&&Lu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vo&&ri(Vo,r)||(Vo=r,r=_l(Cs,"onSelect"),0<r.length&&(t=new Ru("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Rr)))}function Vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ar={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionend:Vi("Transition","TransitionEnd")},Ia={},Ap={};un&&(Ap=document.createElement("div").style,"AnimationEvent"in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),"TransitionEvent"in window||delete Ar.transitionend.transition);function ql(e){if(Ia[e])return Ia[e];if(!Ar[e])return e;var t=Ar[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ap)return Ia[e]=t[n];return e}var Ip=ql("animationend"),Lp=ql("animationiteration"),Mp=ql("animationstart"),Op=ql("transitionend"),Bp=new Map,Zc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Un(e,t){Bp.set(e,t),vr(t,[e])}for(var La=0;La<Zc.length;La++){var Ma=Zc[La],Z0=Ma.toLowerCase(),q0=Ma[0].toUpperCase()+Ma.slice(1);Un(Z0,"on"+q0)}Un(Ip,"onAnimationEnd");Un(Lp,"onAnimationIteration");Un(Mp,"onAnimationStart");Un("dblclick","onDoubleClick");Un("focusin","onFocus");Un("focusout","onBlur");Un(Op,"onTransitionEnd");Gr("onMouseEnter",["mouseout","mouseover"]);Gr("onMouseLeave",["mouseout","mouseover"]);Gr("onPointerEnter",["pointerout","pointerover"]);Gr("onPointerLeave",["pointerout","pointerover"]);vr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vr("onBeforeInput",["compositionend","keypress","textInput","paste"]);vr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),J0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bo));function qc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Zv(r,t,void 0,e),e.currentTarget=null}function Dp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var a=r[l],s=a.instance,c=a.currentTarget;if(a=a.listener,s!==i&&o.isPropagationStopped())break e;qc(o,a,c),i=s}else for(l=0;l<r.length;l++){if(a=r[l],s=a.instance,c=a.currentTarget,a=a.listener,s!==i&&o.isPropagationStopped())break e;qc(o,a,c),i=s}}}if(wl)throw e=ws,wl=!1,ws=null,e}function ye(e,t){var n=t[Rs];n===void 0&&(n=t[Rs]=new Set);var r=e+"__bubble";n.has(r)||(bp(t,e,2,!1),n.add(r))}function Oa(e,t,n){var r=0;t&&(r|=4),bp(n,e,r,t)}var Wi="_reactListening"+Math.random().toString(36).slice(2);function oi(e){if(!e[Wi]){e[Wi]=!0,Uf.forEach(function(n){n!=="selectionchange"&&(J0.has(n)||Oa(n,!1,e),Oa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wi]||(t[Wi]=!0,Oa("selectionchange",!1,t))}}function bp(e,t,n,r){switch(kp(t)){case 1:var o=p0;break;case 4:o=h0;break;default:o=Nu}n=o.bind(null,t,n,e),o=void 0,!ys||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ba(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var s=l.tag;if((s===3||s===4)&&(s=l.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;l=l.return}for(;a!==null;){if(l=tr(a),l===null)return;if(s=l.tag,s===5||s===6){r=i=l;continue e}a=a.parentNode}}r=r.return}lp(function(){var c=i,d=Cu(n),h=[];e:{var p=Bp.get(e);if(p!==void 0){var v=Ru,w=e;switch(e){case"keypress":if(il(n)===0)break e;case"keydown":case"keyup":v=R0;break;case"focusin":w="focus",v=Ta;break;case"focusout":w="blur",v=Ta;break;case"beforeblur":case"afterblur":v=Ta;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Fc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=g0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=L0;break;case Ip:case Lp:case Mp:v=k0;break;case Op:v=O0;break;case"scroll":v=m0;break;case"wheel":v=D0;break;case"copy":case"cut":case"paste":v=S0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Wc}var k=(t&4)!==0,C=!k&&e==="scroll",f=k?p!==null?p+"Capture":null:p;k=[];for(var m=c,g;m!==null;){g=m;var _=g.stateNode;if(g.tag===5&&_!==null&&(g=_,f!==null&&(_=qo(m,f),_!=null&&k.push(ii(m,_,g)))),C)break;m=m.return}0<k.length&&(p=new v(p,w,null,n,d),h.push({event:p,listeners:k}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",p&&n!==vs&&(w=n.relatedTarget||n.fromElement)&&(tr(w)||w[cn]))break e;if((v||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,v?(w=n.relatedTarget||n.toElement,v=c,w=w?tr(w):null,w!==null&&(C=gr(w),w!==C||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=c),v!==w)){if(k=Fc,_="onMouseLeave",f="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(k=Wc,_="onPointerLeave",f="onPointerEnter",m="pointer"),C=v==null?p:Ir(v),g=w==null?p:Ir(w),p=new k(_,m+"leave",v,n,d),p.target=C,p.relatedTarget=g,_=null,tr(d)===c&&(k=new k(f,m+"enter",w,n,d),k.target=g,k.relatedTarget=C,_=k),C=_,v&&w)t:{for(k=v,f=w,m=0,g=k;g;g=Cr(g))m++;for(g=0,_=f;_;_=Cr(_))g++;for(;0<m-g;)k=Cr(k),m--;for(;0<g-m;)f=Cr(f),g--;for(;m--;){if(k===f||f!==null&&k===f.alternate)break t;k=Cr(k),f=Cr(f)}k=null}else k=null;v!==null&&Jc(h,p,v,k,!1),w!==null&&C!==null&&Jc(h,C,w,k,!0)}}e:{if(p=c?Ir(c):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var T=j0;else if(Kc(p))if(xp)T=Y0;else{T=K0;var y=U0}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(T=$0);if(T&&(T=T(e,c))){Pp(h,T,n,d);break e}y&&y(e,p,c),e==="focusout"&&(y=p._wrapperState)&&y.controlled&&p.type==="number"&&ds(p,"number",p.value)}switch(y=c?Ir(c):window,e){case"focusin":(Kc(y)||y.contentEditable==="true")&&(Rr=y,Cs=c,Vo=null);break;case"focusout":Vo=Cs=Rr=null;break;case"mousedown":_s=!0;break;case"contextmenu":case"mouseup":case"dragend":_s=!1,Qc(h,n,d);break;case"selectionchange":if(Q0)break;case"keydown":case"keyup":Qc(h,n,d)}var N;if(Iu)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Tr?Cp(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Sp&&n.locale!=="ko"&&(Tr||P!=="onCompositionStart"?P==="onCompositionEnd"&&Tr&&(N=Ep()):(An=d,Tu="value"in An?An.value:An.textContent,Tr=!0)),y=_l(c,P),0<y.length&&(P=new Vc(P,e,null,n,d),h.push({event:P,listeners:y}),N?P.data=N:(N=_p(n),N!==null&&(P.data=N)))),(N=z0?H0(e,n):F0(e,n))&&(c=_l(c,"onBeforeInput"),0<c.length&&(d=new Vc("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:c}),d.data=N))}Dp(h,t)})}function ii(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _l(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=qo(e,n),i!=null&&r.unshift(ii(e,i,o)),i=qo(e,t),i!=null&&r.push(ii(e,i,o))),e=e.return}return r}function Cr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Jc(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var a=n,s=a.alternate,c=a.stateNode;if(s!==null&&s===r)break;a.tag===5&&c!==null&&(a=c,o?(s=qo(n,i),s!=null&&l.unshift(ii(n,s,a))):o||(s=qo(n,i),s!=null&&l.push(ii(n,s,a)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var eg=/\r\n?/g,tg=/\u0000|\uFFFD/g;function ed(e){return(typeof e=="string"?e:""+e).replace(eg,"\n").replace(tg,"")}function ji(e,t,n){if(t=ed(t),ed(e)!==t&&n)throw Error(A(425))}function Pl(){}var Ps=null,xs=null;function Ns(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ts=typeof setTimeout=="function"?setTimeout:void 0,ng=typeof clearTimeout=="function"?clearTimeout:void 0,td=typeof Promise=="function"?Promise:void 0,rg=typeof queueMicrotask=="function"?queueMicrotask:typeof td<"u"?function(e){return td.resolve(null).then(e).catch(og)}:Ts;function og(e){setTimeout(function(){throw e})}function Da(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ti(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ti(t)}function Dn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function nd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var lo=Math.random().toString(36).slice(2),Gt="__reactFiber$"+lo,li="__reactProps$"+lo,cn="__reactContainer$"+lo,Rs="__reactEvents$"+lo,ig="__reactListeners$"+lo,lg="__reactHandles$"+lo;function tr(e){var t=e[Gt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cn]||n[Gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=nd(e);e!==null;){if(n=e[Gt])return n;e=nd(e)}return t}e=n,n=e.parentNode}return null}function yi(e){return e=e[Gt]||e[cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ir(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function Jl(e){return e[li]||null}var As=[],Lr=-1;function Kn(e){return{current:e}}function ke(e){0>Lr||(e.current=As[Lr],As[Lr]=null,Lr--)}function ge(e,t){Lr++,As[Lr]=e.current,e.current=t}var Wn={},nt=Kn(Wn),pt=Kn(!1),ur=Wn;function Qr(e,t){var n=e.type.contextTypes;if(!n)return Wn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ht(e){return e=e.childContextTypes,e!=null}function xl(){ke(pt),ke(nt)}function rd(e,t,n){if(nt.current!==Wn)throw Error(A(168));ge(nt,t),ge(pt,n)}function zp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,Uv(e)||"Unknown",o));return Ne({},n,r)}function Nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,ur=nt.current,ge(nt,e),ge(pt,pt.current),!0}function od(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=zp(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ke(pt),ke(nt),ge(nt,e)):ke(pt),ge(pt,n)}var nn=null,ea=!1,ba=!1;function Hp(e){nn===null?nn=[e]:nn.push(e)}function ag(e){ea=!0,Hp(e)}function $n(){if(!ba&&nn!==null){ba=!0;var e=0,t=pe;try{var n=nn;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}nn=null,ea=!1}catch(o){throw nn!==null&&(nn=nn.slice(e+1)),cp(_u,$n),o}finally{pe=t,ba=!1}}return null}var Mr=[],Or=0,Tl=null,Rl=0,Nt=[],Tt=0,cr=null,ln=1,an="";function qn(e,t){Mr[Or++]=Rl,Mr[Or++]=Tl,Tl=e,Rl=t}function Fp(e,t,n){Nt[Tt++]=ln,Nt[Tt++]=an,Nt[Tt++]=cr,cr=e;var r=ln;e=an;var o=32-Wt(r)-1;r&=~(1<<o),n+=1;var i=32-Wt(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,ln=1<<32-Wt(t)+o|n<<o|r,an=i+e}else ln=1<<i|n<<o|r,an=e}function Mu(e){e.return!==null&&(qn(e,1),Fp(e,1,0))}function Ou(e){for(;e===Tl;)Tl=Mr[--Or],Mr[Or]=null,Rl=Mr[--Or],Mr[Or]=null;for(;e===cr;)cr=Nt[--Tt],Nt[Tt]=null,an=Nt[--Tt],Nt[Tt]=null,ln=Nt[--Tt],Nt[Tt]=null}var St=null,Et=null,Se=!1,Vt=null;function Vp(e,t){var n=Rt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function id(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,St=e,Et=Dn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,St=e,Et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=cr!==null?{id:ln,overflow:an}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,St=e,Et=null,!0):!1;default:return!1}}function Is(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ls(e){if(Se){var t=Et;if(t){var n=t;if(!id(e,t)){if(Is(e))throw Error(A(418));t=Dn(n.nextSibling);var r=St;t&&id(e,t)?Vp(r,n):(e.flags=e.flags&-4097|2,Se=!1,St=e)}}else{if(Is(e))throw Error(A(418));e.flags=e.flags&-4097|2,Se=!1,St=e}}}function ld(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;St=e}function Ui(e){if(e!==St)return!1;if(!Se)return ld(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ns(e.type,e.memoizedProps)),t&&(t=Et)){if(Is(e))throw Wp(),Error(A(418));for(;t;)Vp(e,t),t=Dn(t.nextSibling)}if(ld(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Et=Dn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Et=null}}else Et=St?Dn(e.stateNode.nextSibling):null;return!0}function Wp(){for(var e=Et;e;)e=Dn(e.nextSibling)}function Zr(){Et=St=null,Se=!1}function Bu(e){Vt===null?Vt=[e]:Vt.push(e)}var sg=pn.ReactCurrentBatchConfig;function zt(e,t){if(e&&e.defaultProps){t=Ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Al=Kn(null),Il=null,Br=null,Du=null;function bu(){Du=Br=Il=null}function zu(e){var t=Al.current;ke(Al),e._currentValue=t}function Ms(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function $r(e,t){Il=e,Du=Br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function It(e){var t=e._currentValue;if(Du!==e)if(e={context:e,memoizedValue:t,next:null},Br===null){if(Il===null)throw Error(A(308));Br=e,Il.dependencies={lanes:0,firstContext:e}}else Br=Br.next=e;return t}var nr=null;function Hu(e){nr===null?nr=[e]:nr.push(e)}function jp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Hu(t)):(n.next=o.next,o.next=n),t.interleaved=n,dn(e,r)}function dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Nn=!1;function Fu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Up(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ue&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,dn(e,n)}return o=r.interleaved,o===null?(t.next=t,Hu(r)):(t.next=o.next,o.next=t),r.interleaved=t,dn(e,n)}function ll(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pu(e,n)}}function ad(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ll(e,t,n,r){var o=e.updateQueue;Nn=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var s=a,c=s.next;s.next=null,l===null?i=c:l.next=c,l=s;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==l&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=s))}if(i!==null){var h=o.baseState;l=0,d=c=s=null,a=i;do{var p=a.lane,v=a.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,k=a;switch(p=t,v=n,k.tag){case 1:if(w=k.payload,typeof w=="function"){h=w.call(v,h,p);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,p=typeof w=="function"?w.call(v,h,p):w,p==null)break e;h=Ne({},h,p);break e;case 2:Nn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else v={eventTime:v,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=v,s=h):d=d.next=v,l|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(s=h),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);fr|=l,e.lanes=l,e.memoizedState=h}}function sd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(A(191,o));o.call(r)}}}var Kp=new jf.Component().refs;function Os(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ta={isMounted:function(e){return(e=e._reactInternals)?gr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=it(),o=Hn(e),i=sn(r,o);i.payload=t,n!=null&&(i.callback=n),t=bn(e,i,o),t!==null&&(jt(t,e,o,r),ll(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=it(),o=Hn(e),i=sn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=bn(e,i,o),t!==null&&(jt(t,e,o,r),ll(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=it(),r=Hn(e),o=sn(n,r);o.tag=2,t!=null&&(o.callback=t),t=bn(e,o,r),t!==null&&(jt(t,e,r,n),ll(t,e,r))}};function ud(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!ri(n,r)||!ri(o,i):!0}function $p(e,t,n){var r=!1,o=Wn,i=t.contextType;return typeof i=="object"&&i!==null?i=It(i):(o=ht(t)?ur:nt.current,r=t.contextTypes,i=(r=r!=null)?Qr(e,o):Wn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ta,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function cd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ta.enqueueReplaceState(t,t.state,null)}function Bs(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Kp,Fu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=It(i):(i=ht(t)?ur:nt.current,o.context=Qr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Os(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ta.enqueueReplaceState(o,o.state,null),Ll(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Co(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(A(309));var r=n.stateNode}if(!r)throw Error(A(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var a=o.refs;a===Kp&&(a=o.refs={}),l===null?delete a[i]:a[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,e))}return e}function Ki(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function dd(e){var t=e._init;return t(e._payload)}function Yp(e){function t(f,m){if(e){var g=f.deletions;g===null?(f.deletions=[m],f.flags|=16):g.push(m)}}function n(f,m){if(!e)return null;for(;m!==null;)t(f,m),m=m.sibling;return null}function r(f,m){for(f=new Map;m!==null;)m.key!==null?f.set(m.key,m):f.set(m.index,m),m=m.sibling;return f}function o(f,m){return f=Fn(f,m),f.index=0,f.sibling=null,f}function i(f,m,g){return f.index=g,e?(g=f.alternate,g!==null?(g=g.index,g<m?(f.flags|=2,m):g):(f.flags|=2,m)):(f.flags|=1048576,m)}function l(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,m,g,_){return m===null||m.tag!==6?(m=Ua(g,f.mode,_),m.return=f,m):(m=o(m,g),m.return=f,m)}function s(f,m,g,_){var T=g.type;return T===Nr?d(f,m,g.props.children,_,g.key):m!==null&&(m.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===xn&&dd(T)===m.type)?(_=o(m,g.props),_.ref=Co(f,m,g),_.return=f,_):(_=fl(g.type,g.key,g.props,null,f.mode,_),_.ref=Co(f,m,g),_.return=f,_)}function c(f,m,g,_){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=Ka(g,f.mode,_),m.return=f,m):(m=o(m,g.children||[]),m.return=f,m)}function d(f,m,g,_,T){return m===null||m.tag!==7?(m=ar(g,f.mode,_,T),m.return=f,m):(m=o(m,g),m.return=f,m)}function h(f,m,g){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Ua(""+m,f.mode,g),m.return=f,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Oi:return g=fl(m.type,m.key,m.props,null,f.mode,g),g.ref=Co(f,null,m),g.return=f,g;case xr:return m=Ka(m,f.mode,g),m.return=f,m;case xn:var _=m._init;return h(f,_(m._payload),g)}if(Mo(m)||yo(m))return m=ar(m,f.mode,g,null),m.return=f,m;Ki(f,m)}return null}function p(f,m,g,_){var T=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return T!==null?null:a(f,m,""+g,_);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Oi:return g.key===T?s(f,m,g,_):null;case xr:return g.key===T?c(f,m,g,_):null;case xn:return T=g._init,p(f,m,T(g._payload),_)}if(Mo(g)||yo(g))return T!==null?null:d(f,m,g,_,null);Ki(f,g)}return null}function v(f,m,g,_,T){if(typeof _=="string"&&_!==""||typeof _=="number")return f=f.get(g)||null,a(m,f,""+_,T);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Oi:return f=f.get(_.key===null?g:_.key)||null,s(m,f,_,T);case xr:return f=f.get(_.key===null?g:_.key)||null,c(m,f,_,T);case xn:var y=_._init;return v(f,m,g,y(_._payload),T)}if(Mo(_)||yo(_))return f=f.get(g)||null,d(m,f,_,T,null);Ki(m,_)}return null}function w(f,m,g,_){for(var T=null,y=null,N=m,P=m=0,O=null;N!==null&&P<g.length;P++){N.index>P?(O=N,N=null):O=N.sibling;var D=p(f,N,g[P],_);if(D===null){N===null&&(N=O);break}e&&N&&D.alternate===null&&t(f,N),m=i(D,m,P),y===null?T=D:y.sibling=D,y=D,N=O}if(P===g.length)return n(f,N),Se&&qn(f,P),T;if(N===null){for(;P<g.length;P++)N=h(f,g[P],_),N!==null&&(m=i(N,m,P),y===null?T=N:y.sibling=N,y=N);return Se&&qn(f,P),T}for(N=r(f,N);P<g.length;P++)O=v(N,f,P,g[P],_),O!==null&&(e&&O.alternate!==null&&N.delete(O.key===null?P:O.key),m=i(O,m,P),y===null?T=O:y.sibling=O,y=O);return e&&N.forEach(function(j){return t(f,j)}),Se&&qn(f,P),T}function k(f,m,g,_){var T=yo(g);if(typeof T!="function")throw Error(A(150));if(g=T.call(g),g==null)throw Error(A(151));for(var y=T=null,N=m,P=m=0,O=null,D=g.next();N!==null&&!D.done;P++,D=g.next()){N.index>P?(O=N,N=null):O=N.sibling;var j=p(f,N,D.value,_);if(j===null){N===null&&(N=O);break}e&&N&&j.alternate===null&&t(f,N),m=i(j,m,P),y===null?T=j:y.sibling=j,y=j,N=O}if(D.done)return n(f,N),Se&&qn(f,P),T;if(N===null){for(;!D.done;P++,D=g.next())D=h(f,D.value,_),D!==null&&(m=i(D,m,P),y===null?T=D:y.sibling=D,y=D);return Se&&qn(f,P),T}for(N=r(f,N);!D.done;P++,D=g.next())D=v(N,f,P,D.value,_),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?P:D.key),m=i(D,m,P),y===null?T=D:y.sibling=D,y=D);return e&&N.forEach(function(J){return t(f,J)}),Se&&qn(f,P),T}function C(f,m,g,_){if(typeof g=="object"&&g!==null&&g.type===Nr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Oi:e:{for(var T=g.key,y=m;y!==null;){if(y.key===T){if(T=g.type,T===Nr){if(y.tag===7){n(f,y.sibling),m=o(y,g.props.children),m.return=f,f=m;break e}}else if(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===xn&&dd(T)===y.type){n(f,y.sibling),m=o(y,g.props),m.ref=Co(f,y,g),m.return=f,f=m;break e}n(f,y);break}else t(f,y);y=y.sibling}g.type===Nr?(m=ar(g.props.children,f.mode,_,g.key),m.return=f,f=m):(_=fl(g.type,g.key,g.props,null,f.mode,_),_.ref=Co(f,m,g),_.return=f,f=_)}return l(f);case xr:e:{for(y=g.key;m!==null;){if(m.key===y)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(f,m.sibling),m=o(m,g.children||[]),m.return=f,f=m;break e}else{n(f,m);break}else t(f,m);m=m.sibling}m=Ka(g,f.mode,_),m.return=f,f=m}return l(f);case xn:return y=g._init,C(f,m,y(g._payload),_)}if(Mo(g))return w(f,m,g,_);if(yo(g))return k(f,m,g,_);Ki(f,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,m!==null&&m.tag===6?(n(f,m.sibling),m=o(m,g),m.return=f,f=m):(n(f,m),m=Ua(g,f.mode,_),m.return=f,f=m),l(f)):n(f,m)}return C}var qr=Yp(!0),Xp=Yp(!1),wi={},Zt=Kn(wi),ai=Kn(wi),si=Kn(wi);function rr(e){if(e===wi)throw Error(A(174));return e}function Vu(e,t){switch(ge(si,t),ge(ai,e),ge(Zt,wi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ps(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ps(t,e)}ke(Zt),ge(Zt,t)}function Jr(){ke(Zt),ke(ai),ke(si)}function Gp(e){rr(si.current);var t=rr(Zt.current),n=ps(t,e.type);t!==n&&(ge(ai,e),ge(Zt,n))}function Wu(e){ai.current===e&&(ke(Zt),ke(ai))}var Pe=Kn(0);function Ml(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var za=[];function ju(){for(var e=0;e<za.length;e++)za[e]._workInProgressVersionPrimary=null;za.length=0}var al=pn.ReactCurrentDispatcher,Ha=pn.ReactCurrentBatchConfig,dr=0,xe=null,Fe=null,Ke=null,Ol=!1,Wo=!1,ui=0,ug=0;function Je(){throw Error(A(321))}function Uu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ut(e[n],t[n]))return!1;return!0}function Ku(e,t,n,r,o,i){if(dr=i,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,al.current=e===null||e.memoizedState===null?pg:hg,e=n(r,o),Wo){i=0;do{if(Wo=!1,ui=0,25<=i)throw Error(A(301));i+=1,Ke=Fe=null,t.updateQueue=null,al.current=mg,e=n(r,o)}while(Wo)}if(al.current=Bl,t=Fe!==null&&Fe.next!==null,dr=0,Ke=Fe=xe=null,Ol=!1,t)throw Error(A(300));return e}function $u(){var e=ui!==0;return ui=0,e}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?xe.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Lt(){if(Fe===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=Ke===null?xe.memoizedState:Ke.next;if(t!==null)Ke=t,Fe=e;else{if(e===null)throw Error(A(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},Ke===null?xe.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function ci(e,t){return typeof t=="function"?t(e):t}function Fa(e){var t=Lt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=Fe,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=l=null,s=null,c=i;do{var d=c.lane;if((dr&d)===d)s!==null&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};s===null?(a=s=h,l=r):s=s.next=h,xe.lanes|=d,fr|=d}c=c.next}while(c!==null&&c!==i);s===null?l=r:s.next=a,Ut(r,t.memoizedState)||(dt=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,xe.lanes|=i,fr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Va(e){var t=Lt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);Ut(i,t.memoizedState)||(dt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Qp(){}function Zp(e,t){var n=xe,r=Lt(),o=t(),i=!Ut(r.memoizedState,o);if(i&&(r.memoizedState=o,dt=!0),r=r.queue,Yu(eh.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ke!==null&&Ke.memoizedState.tag&1){if(n.flags|=2048,di(9,Jp.bind(null,n,r,o,t),void 0,null),$e===null)throw Error(A(349));dr&30||qp(n,t,o)}return o}function qp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jp(e,t,n,r){t.value=n,t.getSnapshot=r,th(t)&&nh(e)}function eh(e,t,n){return n(function(){th(t)&&nh(e)})}function th(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ut(e,n)}catch(r){return!0}}function nh(e){var t=dn(e,1);t!==null&&jt(t,e,1,-1)}function fd(e){var t=Xt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:e},t.queue=e,e=e.dispatch=fg.bind(null,xe,e),[t.memoizedState,e]}function di(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function rh(){return Lt().memoizedState}function sl(e,t,n,r){var o=Xt();xe.flags|=e,o.memoizedState=di(1|t,n,void 0,r===void 0?null:r)}function na(e,t,n,r){var o=Lt();r=r===void 0?null:r;var i=void 0;if(Fe!==null){var l=Fe.memoizedState;if(i=l.destroy,r!==null&&Uu(r,l.deps)){o.memoizedState=di(t,n,i,r);return}}xe.flags|=e,o.memoizedState=di(1|t,n,i,r)}function pd(e,t){return sl(8390656,8,e,t)}function Yu(e,t){return na(2048,8,e,t)}function oh(e,t){return na(4,2,e,t)}function ih(e,t){return na(4,4,e,t)}function lh(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ah(e,t,n){return n=n!=null?n.concat([e]):null,na(4,4,lh.bind(null,t,e),n)}function Xu(){}function sh(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Uu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function uh(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Uu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ch(e,t,n){return dr&21?(Ut(n,t)||(n=pp(),xe.lanes|=n,fr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function cg(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Ha.transition;Ha.transition={};try{e(!1),t()}finally{pe=n,Ha.transition=r}}function dh(){return Lt().memoizedState}function dg(e,t,n){var r=Hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fh(e))ph(t,n);else if(n=jp(e,t,n,r),n!==null){var o=it();jt(n,e,r,o),hh(n,t,r)}}function fg(e,t,n){var r=Hn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fh(e))ph(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,Ut(a,l)){var s=t.interleaved;s===null?(o.next=o,Hu(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch(c){}finally{}n=jp(e,t,o,r),n!==null&&(o=it(),jt(n,e,r,o),hh(n,t,r))}}function fh(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function ph(e,t){Wo=Ol=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pu(e,n)}}var Bl={readContext:It,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},pg={readContext:It,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:pd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sl(4194308,4,lh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return sl(4,2,e,t)},useMemo:function(e,t){var n=Xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dg.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:fd,useDebugValue:Xu,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=fd(!1),t=e[0];return e=cg.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,o=Xt();if(Se){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),$e===null)throw Error(A(349));dr&30||qp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,pd(eh.bind(null,r,i,e),[e]),r.flags|=2048,di(9,Jp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xt(),t=$e.identifierPrefix;if(Se){var n=an,r=ln;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ui++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ug++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},hg={readContext:It,useCallback:sh,useContext:It,useEffect:Yu,useImperativeHandle:ah,useInsertionEffect:oh,useLayoutEffect:ih,useMemo:uh,useReducer:Fa,useRef:rh,useState:function(){return Fa(ci)},useDebugValue:Xu,useDeferredValue:function(e){var t=Lt();return ch(t,Fe.memoizedState,e)},useTransition:function(){var e=Fa(ci)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Qp,useSyncExternalStore:Zp,useId:dh,unstable_isNewReconciler:!1},mg={readContext:It,useCallback:sh,useContext:It,useEffect:Yu,useImperativeHandle:ah,useInsertionEffect:oh,useLayoutEffect:ih,useMemo:uh,useReducer:Va,useRef:rh,useState:function(){return Va(ci)},useDebugValue:Xu,useDeferredValue:function(e){var t=Lt();return Fe===null?t.memoizedState=e:ch(t,Fe.memoizedState,e)},useTransition:function(){var e=Va(ci)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Qp,useSyncExternalStore:Zp,useId:dh,unstable_isNewReconciler:!1};function eo(e,t){try{var n="",r=t;do n+=jv(r),r=r.return;while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function Wa(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Ds(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var vg=typeof WeakMap=="function"?WeakMap:Map;function mh(e,t,n){n=sn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bl||(bl=!0,$s=r),Ds(e,t)},n}function vh(e,t,n){n=sn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ds(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ds(e,t),typeof r!="function"&&(zn===null?zn=new Set([this]):zn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function hd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new vg;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ag.bind(null,e,t,n),t.then(e,e))}function md(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function vd(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=sn(-1,1),t.tag=2,bn(n,t,1))),n.lanes|=1),e)}var gg=pn.ReactCurrentOwner,dt=!1;function ot(e,t,n,r){t.child=e===null?Xp(t,null,n,r):qr(t,e.child,n,r)}function gd(e,t,n,r,o){n=n.render;var i=t.ref;return $r(t,o),r=Ku(e,t,n,r,i,o),n=$u(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,fn(e,t,o)):(Se&&n&&Mu(t),t.flags|=1,ot(e,t,r,o),t.child)}function yd(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!nc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,gh(e,t,i,r,o)):(e=fl(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:ri,n(l,r)&&e.ref===t.ref)return fn(e,t,o)}return t.flags|=1,e=Fn(i,r),e.ref=t.ref,e.return=t,t.child=e}function gh(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ri(i,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,fn(e,t,o)}return bs(e,t,n,r,o)}function yh(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(br,wt),wt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(br,wt),wt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ge(br,wt),wt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ge(br,wt),wt|=r;return ot(e,t,o,n),t.child}function wh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function bs(e,t,n,r,o){var i=ht(n)?ur:nt.current;return i=Qr(t,i),$r(t,o),n=Ku(e,t,n,r,i,o),r=$u(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,fn(e,t,o)):(Se&&r&&Mu(t),t.flags|=1,ot(e,t,n,o),t.child)}function wd(e,t,n,r,o){if(ht(n)){var i=!0;Nl(t)}else i=!1;if($r(t,o),t.stateNode===null)ul(e,t),$p(t,n,r),Bs(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var s=l.context,c=n.contextType;typeof c=="object"&&c!==null?c=It(c):(c=ht(n)?ur:nt.current,c=Qr(t,c));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||s!==c)&&cd(t,l,r,c),Nn=!1;var p=t.memoizedState;l.state=p,Ll(t,r,l,o),s=t.memoizedState,a!==r||p!==s||pt.current||Nn?(typeof d=="function"&&(Os(t,n,d,r),s=t.memoizedState),(a=Nn||ud(t,n,a,r,p,s,c))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=c,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Up(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:zt(t.type,a),l.props=c,h=t.pendingProps,p=l.context,s=n.contextType,typeof s=="object"&&s!==null?s=It(s):(s=ht(n)?ur:nt.current,s=Qr(t,s));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==h||p!==s)&&cd(t,l,r,s),Nn=!1,p=t.memoizedState,l.state=p,Ll(t,r,l,o);var w=t.memoizedState;a!==h||p!==w||pt.current||Nn?(typeof v=="function"&&(Os(t,n,v,r),w=t.memoizedState),(c=Nn||ud(t,n,c,r,p,w,s)||!1)?(d||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,w,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,w,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),l.props=r,l.state=w,l.context=s,r=c):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return zs(e,t,n,r,i,o)}function zs(e,t,n,r,o,i){wh(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&od(t,n,!1),fn(e,t,i);r=t.stateNode,gg.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=qr(t,e.child,null,i),t.child=qr(t,null,a,i)):ot(e,t,a,i),t.memoizedState=r.state,o&&od(t,n,!0),t.child}function kh(e){var t=e.stateNode;t.pendingContext?rd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&rd(e,t.context,!1),Vu(e,t.containerInfo)}function kd(e,t,n,r,o){return Zr(),Bu(o),t.flags|=256,ot(e,t,n,r),t.child}var Hs={dehydrated:null,treeContext:null,retryLane:0};function Fs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Eh(e,t,n){var r=t.pendingProps,o=Pe.current,i=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ge(Pe,o&1),e===null)return Ls(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=ia(l,r,0,null),e=ar(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fs(n),t.memoizedState=Hs,e):Gu(t,l));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return yg(e,t,l,r,a,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,a=o.sibling;var s={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Fn(o,s),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Fn(a,i):(i=ar(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Fs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Hs,r}return i=e.child,e=i.sibling,r=Fn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Gu(e,t){return t=ia({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $i(e,t,n,r){return r!==null&&Bu(r),qr(t,e.child,null,n),e=Gu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yg(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Wa(Error(A(422))),$i(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ia({mode:"visible",children:r.children},o,0,null),i=ar(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&qr(t,e.child,null,l),t.child.memoizedState=Fs(l),t.memoizedState=Hs,i);if(!(t.mode&1))return $i(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(A(419)),r=Wa(i,r,void 0),$i(e,t,l,r)}if(a=(l&e.childLanes)!==0,dt||a){if(r=$e,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,dn(e,o),jt(r,e,o,-1))}return tc(),r=Wa(Error(A(421))),$i(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Ig.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Et=Dn(o.nextSibling),St=t,Se=!0,Vt=null,e!==null&&(Nt[Tt++]=ln,Nt[Tt++]=an,Nt[Tt++]=cr,ln=e.id,an=e.overflow,cr=t),t=Gu(t,r.children),t.flags|=4096,t)}function Ed(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ms(e.return,t,n)}function ja(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Sh(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ot(e,t,r.children,n),r=Pe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ed(e,n,t);else if(e.tag===19)Ed(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ge(Pe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ml(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ja(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ml(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ja(t,!0,n,null,i);break;case"together":ja(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ul(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function fn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=Fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wg(e,t,n){switch(t.tag){case 3:kh(t),Zr();break;case 5:Gp(t);break;case 1:ht(t.type)&&Nl(t);break;case 4:Vu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ge(Al,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(Pe,Pe.current&1),t.flags|=128,null):n&t.child.childLanes?Eh(e,t,n):(ge(Pe,Pe.current&1),e=fn(e,t,n),e!==null?e.sibling:null);ge(Pe,Pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Sh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ge(Pe,Pe.current),r)break;return null;case 22:case 23:return t.lanes=0,yh(e,t,n)}return fn(e,t,n)}var Ch,Vs,_h,Ph;Ch=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Vs=function(){};_h=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,rr(Zt.current);var i=null;switch(n){case"input":o=us(e,o),r=us(e,r),i=[];break;case"select":o=Ne({},o,{value:void 0}),r=Ne({},r,{value:void 0}),i=[];break;case"textarea":o=fs(e,o),r=fs(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Pl)}hs(n,r);var l;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Qo.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&s!==a&&(s!=null||a!=null))if(c==="style")if(a){for(l in a)!a.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&a[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(i||(i=[]),i.push(c,n)),n=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(i=i||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Qo.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&ye("scroll",e),i||a===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Ph=function(e,t,n,r){n!==r&&(t.flags|=4)};function _o(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function kg(e,t,n){var r=t.pendingProps;switch(Ou(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return ht(t.type)&&xl(),et(t),null;case 3:return r=t.stateNode,Jr(),ke(pt),ke(nt),ju(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ui(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vt!==null&&(Gs(Vt),Vt=null))),Vs(e,t),et(t),null;case 5:Wu(t);var o=rr(si.current);if(n=t.type,e!==null&&t.stateNode!=null)_h(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return et(t),null}if(e=rr(Zt.current),Ui(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Gt]=t,r[li]=i,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(o=0;o<Bo.length;o++)ye(Bo[o],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":Ac(r,i),ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ye("invalid",r);break;case"textarea":Lc(r,i),ye("invalid",r)}hs(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var a=i[l];l==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&ji(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&ji(r.textContent,a,e),o=["children",""+a]):Qo.hasOwnProperty(l)&&a!=null&&l==="onScroll"&&ye("scroll",r)}switch(n){case"input":Bi(r),Ic(r,i,!0);break;case"textarea":Bi(r),Mc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Pl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=qf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Gt]=t,e[li]=r,Ch(e,t,!1,!1),t.stateNode=e;e:{switch(l=ms(n,r),n){case"dialog":ye("cancel",e),ye("close",e),o=r;break;case"iframe":case"object":case"embed":ye("load",e),o=r;break;case"video":case"audio":for(o=0;o<Bo.length;o++)ye(Bo[o],e);o=r;break;case"source":ye("error",e),o=r;break;case"img":case"image":case"link":ye("error",e),ye("load",e),o=r;break;case"details":ye("toggle",e),o=r;break;case"input":Ac(e,r),o=us(e,r),ye("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ne({},r,{value:void 0}),ye("invalid",e);break;case"textarea":Lc(e,r),o=fs(e,r),ye("invalid",e);break;default:o=r}hs(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var s=a[i];i==="style"?tp(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Jf(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Zo(e,s):typeof s=="number"&&Zo(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Qo.hasOwnProperty(i)?s!=null&&i==="onScroll"&&ye("scroll",e):s!=null&&wu(e,i,s,l))}switch(n){case"input":Bi(e),Ic(e,r,!1);break;case"textarea":Bi(e),Mc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Vn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Wr(e,!!r.multiple,i,!1):r.defaultValue!=null&&Wr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Pl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)Ph(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(n=rr(si.current),rr(Zt.current),Ui(t)){if(r=t.stateNode,n=t.memoizedProps,r[Gt]=t,(i=r.nodeValue!==n)&&(e=St,e!==null))switch(e.tag){case 3:ji(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ji(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Gt]=t,t.stateNode=r}return et(t),null;case 13:if(ke(Pe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&Et!==null&&t.mode&1&&!(t.flags&128))Wp(),Zr(),t.flags|=98560,i=!1;else if(i=Ui(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(A(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(A(317));i[Gt]=t}else Zr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),i=!1}else Vt!==null&&(Gs(Vt),Vt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Pe.current&1?Ve===0&&(Ve=3):tc())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return Jr(),Vs(e,t),e===null&&oi(t.stateNode.containerInfo),et(t),null;case 10:return zu(t.type._context),et(t),null;case 17:return ht(t.type)&&xl(),et(t),null;case 19:if(ke(Pe),i=t.memoizedState,i===null)return et(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)_o(i,!1);else{if(Ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Ml(e),l!==null){for(t.flags|=128,_o(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ge(Pe,Pe.current&1|2),t.child}e=e.sibling}i.tail!==null&&Oe()>to&&(t.flags|=128,r=!0,_o(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ml(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_o(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Se)return et(t),null}else 2*Oe()-i.renderingStartTime>to&&n!==1073741824&&(t.flags|=128,r=!0,_o(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Oe(),t.sibling=null,n=Pe.current,ge(Pe,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return ec(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?wt&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function Eg(e,t){switch(Ou(t),t.tag){case 1:return ht(t.type)&&xl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jr(),ke(pt),ke(nt),ju(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wu(t),null;case 13:if(ke(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(Pe),null;case 4:return Jr(),null;case 10:return zu(t.type._context),null;case 22:case 23:return ec(),null;case 24:return null;default:return null}}var Yi=!1,tt=!1,Sg=typeof WeakSet=="function"?WeakSet:Set,b=null;function Dr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Re(e,t,r)}else n.current=null}function Ws(e,t,n){try{n()}catch(r){Re(e,t,r)}}var Sd=!1;function Cg(e,t){if(Ps=Sl,e=Rp(),Lu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(_){n=null;break e}var l=0,a=-1,s=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(a=l+o),h!==i||r!==0&&h.nodeType!==3||(s=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(v=h.firstChild)!==null;)p=h,h=v;for(;;){if(h===e)break t;if(p===n&&++c===o&&(a=l),p===i&&++d===r&&(s=l),(v=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=v}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(xs={focusedElem:e,selectionRange:n},Sl=!1,b=t;b!==null;)if(t=b,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,b=e;else for(;b!==null;){t=b;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,C=w.memoizedState,f=t.stateNode,m=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:zt(t.type,k),C);f.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(_){Re(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,b=e;break}b=t.return}return w=Sd,Sd=!1,w}function jo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ws(t,n,i)}o=o.next}while(o!==r)}}function ra(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function js(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function xh(e){var t=e.alternate;t!==null&&(e.alternate=null,xh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gt],delete t[li],delete t[Rs],delete t[ig],delete t[lg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Nh(e){return e.tag===5||e.tag===3||e.tag===4}function Cd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Us(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Pl));else if(r!==4&&(e=e.child,e!==null))for(Us(e,t,n),e=e.sibling;e!==null;)Us(e,t,n),e=e.sibling}function Ks(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ks(e,t,n),e=e.sibling;e!==null;)Ks(e,t,n),e=e.sibling}var Ge=null,Ht=!1;function _n(e,t,n){for(n=n.child;n!==null;)Th(e,t,n),n=n.sibling}function Th(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Gl,n)}catch(a){}switch(n.tag){case 5:tt||Dr(n,t);case 6:var r=Ge,o=Ht;Ge=null,_n(e,t,n),Ge=r,Ht=o,Ge!==null&&(Ht?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(Ht?(e=Ge,n=n.stateNode,e.nodeType===8?Da(e.parentNode,n):e.nodeType===1&&Da(e,n),ti(e)):Da(Ge,n.stateNode));break;case 4:r=Ge,o=Ht,Ge=n.stateNode.containerInfo,Ht=!0,_n(e,t,n),Ge=r,Ht=o;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Ws(n,t,l),o=o.next}while(o!==r)}_n(e,t,n);break;case 1:if(!tt&&(Dr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Re(n,t,a)}_n(e,t,n);break;case 21:_n(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,_n(e,t,n),tt=r):_n(e,t,n);break;default:_n(e,t,n)}}function _d(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sg),t.forEach(function(r){var o=Lg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,a=l;e:for(;a!==null;){switch(a.tag){case 5:Ge=a.stateNode,Ht=!1;break e;case 3:Ge=a.stateNode.containerInfo,Ht=!0;break e;case 4:Ge=a.stateNode.containerInfo,Ht=!0;break e}a=a.return}if(Ge===null)throw Error(A(160));Th(i,l,o),Ge=null,Ht=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(c){Re(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rh(t,e),t=t.sibling}function Rh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),$t(e),r&4){try{jo(3,e,e.return),ra(3,e)}catch(k){Re(e,e.return,k)}try{jo(5,e,e.return)}catch(k){Re(e,e.return,k)}}break;case 1:Dt(t,e),$t(e),r&512&&n!==null&&Dr(n,n.return);break;case 5:if(Dt(t,e),$t(e),r&512&&n!==null&&Dr(n,n.return),e.flags&32){var o=e.stateNode;try{Zo(o,"")}catch(k){Re(e,e.return,k)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Qf(o,i),ms(a,l);var c=ms(a,i);for(l=0;l<s.length;l+=2){var d=s[l],h=s[l+1];d==="style"?tp(o,h):d==="dangerouslySetInnerHTML"?Jf(o,h):d==="children"?Zo(o,h):wu(o,d,h,c)}switch(a){case"input":cs(o,i);break;case"textarea":Zf(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?Wr(o,!!i.multiple,v,!1):p!==!!i.multiple&&(i.defaultValue!=null?Wr(o,!!i.multiple,i.defaultValue,!0):Wr(o,!!i.multiple,i.multiple?[]:"",!1))}o[li]=i}catch(k){Re(e,e.return,k)}}break;case 6:if(Dt(t,e),$t(e),r&4){if(e.stateNode===null)throw Error(A(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(k){Re(e,e.return,k)}}break;case 3:if(Dt(t,e),$t(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ti(t.containerInfo)}catch(k){Re(e,e.return,k)}break;case 4:Dt(t,e),$t(e);break;case 13:Dt(t,e),$t(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(qu=Oe())),r&4&&_d(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(tt=(c=tt)||d,Dt(t,e),tt=c):Dt(t,e),$t(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(b=e,d=e.child;d!==null;){for(h=b=d;b!==null;){switch(p=b,v=p.child,p.tag){case 0:case 11:case 14:case 15:jo(4,p,p.return);break;case 1:Dr(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(k){Re(r,n,k)}}break;case 5:Dr(p,p.return);break;case 22:if(p.memoizedState!==null){xd(h);continue}}v!==null?(v.return=p,b=v):xd(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{o=h.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,s=h.memoizedProps.style,l=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=ep("display",l))}catch(k){Re(e,e.return,k)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(k){Re(e,e.return,k)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Dt(t,e),$t(e),r&4&&_d(e);break;case 21:break;default:Dt(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Nh(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Zo(o,""),r.flags&=-33);var i=Cd(e);Ks(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,a=Cd(e);Us(e,a,l);break;default:throw Error(A(161))}}catch(s){Re(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _g(e,t,n){b=e,Ah(e)}function Ah(e,t,n){for(var r=(e.mode&1)!==0;b!==null;){var o=b,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||Yi;if(!l){var a=o.alternate,s=a!==null&&a.memoizedState!==null||tt;a=Yi;var c=tt;if(Yi=l,(tt=s)&&!c)for(b=o;b!==null;)l=b,s=l.child,l.tag===22&&l.memoizedState!==null?Nd(o):s!==null?(s.return=l,b=s):Nd(o);for(;i!==null;)b=i,Ah(i),i=i.sibling;b=o,Yi=a,tt=c}Pd(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,b=i):Pd(e)}}function Pd(e){for(;b!==null;){var t=b;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:tt||ra(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!tt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:zt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&sd(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}sd(t,l,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&ti(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}tt||t.flags&512&&js(t)}catch(p){Re(t,t.return,p)}}if(t===e){b=null;break}if(n=t.sibling,n!==null){n.return=t.return,b=n;break}b=t.return}}function xd(e){for(;b!==null;){var t=b;if(t===e){b=null;break}var n=t.sibling;if(n!==null){n.return=t.return,b=n;break}b=t.return}}function Nd(e){for(;b!==null;){var t=b;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ra(4,t)}catch(s){Re(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){Re(t,o,s)}}var i=t.return;try{js(t)}catch(s){Re(t,i,s)}break;case 5:var l=t.return;try{js(t)}catch(s){Re(t,l,s)}}}catch(s){Re(t,t.return,s)}if(t===e){b=null;break}var a=t.sibling;if(a!==null){a.return=t.return,b=a;break}b=t.return}}var Pg=Math.ceil,Dl=pn.ReactCurrentDispatcher,Qu=pn.ReactCurrentOwner,At=pn.ReactCurrentBatchConfig,ue=0,$e=null,De=null,Ze=0,wt=0,br=Kn(0),Ve=0,fi=null,fr=0,oa=0,Zu=0,Uo=null,ct=null,qu=0,to=1/0,tn=null,bl=!1,$s=null,zn=null,Xi=!1,In=null,zl=0,Ko=0,Ys=null,cl=-1,dl=0;function it(){return ue&6?Oe():cl!==-1?cl:cl=Oe()}function Hn(e){return e.mode&1?ue&2&&Ze!==0?Ze&-Ze:sg.transition!==null?(dl===0&&(dl=pp()),dl):(e=pe,e!==0||(e=window.event,e=e===void 0?16:kp(e.type)),e):1}function jt(e,t,n,r){if(50<Ko)throw Ko=0,Ys=null,Error(A(185));vi(e,n,r),(!(ue&2)||e!==$e)&&(e===$e&&(!(ue&2)&&(oa|=n),Ve===4&&Rn(e,Ze)),mt(e,r),n===1&&ue===0&&!(t.mode&1)&&(to=Oe()+500,ea&&$n()))}function mt(e,t){var n=e.callbackNode;s0(e,t);var r=El(e,e===$e?Ze:0);if(r===0)n!==null&&Dc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Dc(n),t===1)e.tag===0?ag(Td.bind(null,e)):Hp(Td.bind(null,e)),rg(function(){!(ue&6)&&$n()}),n=null;else{switch(hp(r)){case 1:n=_u;break;case 4:n=dp;break;case 16:n=kl;break;case 536870912:n=fp;break;default:n=kl}n=zh(n,Ih.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ih(e,t){if(cl=-1,dl=0,ue&6)throw Error(A(327));var n=e.callbackNode;if(Yr()&&e.callbackNode!==n)return null;var r=El(e,e===$e?Ze:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Hl(e,r);else{t=r;var o=ue;ue|=2;var i=Mh();($e!==e||Ze!==t)&&(tn=null,to=Oe()+500,lr(e,t));do try{Tg();break}catch(a){Lh(e,a)}while(!0);bu(),Dl.current=i,ue=o,De!==null?t=0:($e=null,Ze=0,t=Ve)}if(t!==0){if(t===2&&(o=ks(e),o!==0&&(r=o,t=Xs(e,o))),t===1)throw n=fi,lr(e,0),Rn(e,r),mt(e,Oe()),n;if(t===6)Rn(e,r);else{if(o=e.current.alternate,!(r&30)&&!xg(o)&&(t=Hl(e,r),t===2&&(i=ks(e),i!==0&&(r=i,t=Xs(e,i))),t===1))throw n=fi,lr(e,0),Rn(e,r),mt(e,Oe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(A(345));case 2:Jn(e,ct,tn);break;case 3:if(Rn(e,r),(r&130023424)===r&&(t=qu+500-Oe(),10<t)){if(El(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){it(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ts(Jn.bind(null,e,ct,tn),t);break}Jn(e,ct,tn);break;case 4:if(Rn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Wt(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=Oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pg(r/1960))-r,10<r){e.timeoutHandle=Ts(Jn.bind(null,e,ct,tn),r);break}Jn(e,ct,tn);break;case 5:Jn(e,ct,tn);break;default:throw Error(A(329))}}}return mt(e,Oe()),e.callbackNode===n?Ih.bind(null,e):null}function Xs(e,t){var n=Uo;return e.current.memoizedState.isDehydrated&&(lr(e,t).flags|=256),e=Hl(e,t),e!==2&&(t=ct,ct=n,t!==null&&Gs(t)),e}function Gs(e){ct===null?ct=e:ct.push.apply(ct,e)}function xg(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Ut(i(),o))return!1}catch(l){return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Rn(e,t){for(t&=~Zu,t&=~oa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function Td(e){if(ue&6)throw Error(A(327));Yr();var t=El(e,0);if(!(t&1))return mt(e,Oe()),null;var n=Hl(e,t);if(e.tag!==0&&n===2){var r=ks(e);r!==0&&(t=r,n=Xs(e,r))}if(n===1)throw n=fi,lr(e,0),Rn(e,t),mt(e,Oe()),n;if(n===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Jn(e,ct,tn),mt(e,Oe()),null}function Ju(e,t){var n=ue;ue|=1;try{return e(t)}finally{ue=n,ue===0&&(to=Oe()+500,ea&&$n())}}function pr(e){In!==null&&In.tag===0&&!(ue&6)&&Yr();var t=ue;ue|=1;var n=At.transition,r=pe;try{if(At.transition=null,pe=1,e)return e()}finally{pe=r,At.transition=n,ue=t,!(ue&6)&&$n()}}function ec(){wt=br.current,ke(br)}function lr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ng(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch(Ou(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&xl();break;case 3:Jr(),ke(pt),ke(nt),ju();break;case 5:Wu(r);break;case 4:Jr();break;case 13:ke(Pe);break;case 19:ke(Pe);break;case 10:zu(r.type._context);break;case 22:case 23:ec()}n=n.return}if($e=e,De=e=Fn(e.current,null),Ze=wt=t,Ve=0,fi=null,Zu=oa=fr=0,ct=Uo=null,nr!==null){for(t=0;t<nr.length;t++)if(n=nr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}nr=null}return e}function Lh(e,t){do{var n=De;try{if(bu(),al.current=Bl,Ol){for(var r=xe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ol=!1}if(dr=0,Ke=Fe=xe=null,Wo=!1,ui=0,Qu.current=null,n===null||n.return===null){Ve=1,fi=t,De=null;break}e:{var i=e,l=n.return,a=n,s=t;if(t=Ze,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=md(l);if(v!==null){v.flags&=-257,vd(v,l,a,i,t),v.mode&1&&hd(i,c,t),t=v,s=c;var w=t.updateQueue;if(w===null){var k=new Set;k.add(s),t.updateQueue=k}else w.add(s);break e}else{if(!(t&1)){hd(i,c,t),tc();break e}s=Error(A(426))}}else if(Se&&a.mode&1){var C=md(l);if(C!==null){!(C.flags&65536)&&(C.flags|=256),vd(C,l,a,i,t),Bu(eo(s,a));break e}}i=s=eo(s,a),Ve!==4&&(Ve=2),Uo===null?Uo=[i]:Uo.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var f=mh(i,s,t);ad(i,f);break e;case 1:a=s;var m=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(zn===null||!zn.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=vh(i,a,t);ad(i,_);break e}}i=i.return}while(i!==null)}Bh(n)}catch(T){t=T,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function Mh(){var e=Dl.current;return Dl.current=Bl,e===null?Bl:e}function tc(){(Ve===0||Ve===3||Ve===2)&&(Ve=4),$e===null||!(fr&268435455)&&!(oa&268435455)||Rn($e,Ze)}function Hl(e,t){var n=ue;ue|=2;var r=Mh();($e!==e||Ze!==t)&&(tn=null,lr(e,t));do try{Ng();break}catch(o){Lh(e,o)}while(!0);if(bu(),ue=n,Dl.current=r,De!==null)throw Error(A(261));return $e=null,Ze=0,Ve}function Ng(){for(;De!==null;)Oh(De)}function Tg(){for(;De!==null&&!Jv();)Oh(De)}function Oh(e){var t=bh(e.alternate,e,wt);e.memoizedProps=e.pendingProps,t===null?Bh(e):De=t,Qu.current=null}function Bh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Eg(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ve=6,De=null;return}}else if(n=kg(n,t,wt),n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Ve===0&&(Ve=5)}function Jn(e,t,n){var r=pe,o=At.transition;try{At.transition=null,pe=1,Rg(e,t,n,r)}finally{At.transition=o,pe=r}return null}function Rg(e,t,n,r){do Yr();while(In!==null);if(ue&6)throw Error(A(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(A(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(u0(e,i),e===$e&&(De=$e=null,Ze=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Xi||(Xi=!0,zh(kl,function(){return Yr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=At.transition,At.transition=null;var l=pe;pe=1;var a=ue;ue|=4,Qu.current=null,Cg(e,n),Rh(n,e),G0(xs),Sl=!!Ps,xs=Ps=null,e.current=n,_g(n),e0(),ue=a,pe=l,At.transition=i}else e.current=n;if(Xi&&(Xi=!1,In=e,zl=o),i=e.pendingLanes,i===0&&(zn=null),r0(n.stateNode),mt(e,Oe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(bl)throw bl=!1,e=$s,$s=null,e;return zl&1&&e.tag!==0&&Yr(),i=e.pendingLanes,i&1?e===Ys?Ko++:(Ko=0,Ys=e):Ko=0,$n(),null}function Yr(){if(In!==null){var e=hp(zl),t=At.transition,n=pe;try{if(At.transition=null,pe=16>e?16:e,In===null)var r=!1;else{if(e=In,In=null,zl=0,ue&6)throw Error(A(331));var o=ue;for(ue|=4,b=e.current;b!==null;){var i=b,l=i.child;if(b.flags&16){var a=i.deletions;if(a!==null){for(var s=0;s<a.length;s++){var c=a[s];for(b=c;b!==null;){var d=b;switch(d.tag){case 0:case 11:case 15:jo(8,d,i)}var h=d.child;if(h!==null)h.return=d,b=h;else for(;b!==null;){d=b;var p=d.sibling,v=d.return;if(xh(d),d===c){b=null;break}if(p!==null){p.return=v,b=p;break}b=v}}}var w=i.alternate;if(w!==null){var k=w.child;if(k!==null){w.child=null;do{var C=k.sibling;k.sibling=null,k=C}while(k!==null)}}b=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,b=l;else e:for(;b!==null;){if(i=b,i.flags&2048)switch(i.tag){case 0:case 11:case 15:jo(9,i,i.return)}var f=i.sibling;if(f!==null){f.return=i.return,b=f;break e}b=i.return}}var m=e.current;for(b=m;b!==null;){l=b;var g=l.child;if(l.subtreeFlags&2064&&g!==null)g.return=l,b=g;else e:for(l=m;b!==null;){if(a=b,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ra(9,a)}}catch(T){Re(a,a.return,T)}if(a===l){b=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,b=_;break e}b=a.return}}if(ue=o,$n(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Gl,e)}catch(T){}r=!0}return r}finally{pe=n,At.transition=t}}return!1}function Rd(e,t,n){t=eo(n,t),t=mh(e,t,1),e=bn(e,t,1),t=it(),e!==null&&(vi(e,1,t),mt(e,t))}function Re(e,t,n){if(e.tag===3)Rd(e,e,n);else for(;t!==null;){if(t.tag===3){Rd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(zn===null||!zn.has(r))){e=eo(n,e),e=vh(t,e,1),t=bn(t,e,1),e=it(),t!==null&&(vi(t,1,e),mt(t,e));break}}t=t.return}}function Ag(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=it(),e.pingedLanes|=e.suspendedLanes&n,$e===e&&(Ze&n)===n&&(Ve===4||Ve===3&&(Ze&130023424)===Ze&&500>Oe()-qu?lr(e,0):Zu|=n),mt(e,t)}function Dh(e,t){t===0&&(e.mode&1?(t=zi,zi<<=1,!(zi&130023424)&&(zi=4194304)):t=1);var n=it();e=dn(e,t),e!==null&&(vi(e,t,n),mt(e,n))}function Ig(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dh(e,n)}function Lg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Dh(e,n)}var bh;bh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,wg(e,t,n);dt=!!(e.flags&131072)}else dt=!1,Se&&t.flags&1048576&&Fp(t,Rl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ul(e,t),e=t.pendingProps;var o=Qr(t,nt.current);$r(t,n),o=Ku(null,t,r,e,o,n);var i=$u();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(r)?(i=!0,Nl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Fu(t),o.updater=ta,t.stateNode=o,o._reactInternals=t,Bs(t,r,e,n),t=zs(null,t,r,!0,i,n)):(t.tag=0,Se&&i&&Mu(t),ot(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ul(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Og(r),e=zt(r,e),o){case 0:t=bs(null,t,r,e,n);break e;case 1:t=wd(null,t,r,e,n);break e;case 11:t=gd(null,t,r,e,n);break e;case 14:t=yd(null,t,r,zt(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),bs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),wd(e,t,r,o,n);case 3:e:{if(kh(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Up(e,t),Ll(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=eo(Error(A(423)),t),t=kd(e,t,r,n,o);break e}else if(r!==o){o=eo(Error(A(424)),t),t=kd(e,t,r,n,o);break e}else for(Et=Dn(t.stateNode.containerInfo.firstChild),St=t,Se=!0,Vt=null,n=Xp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zr(),r===o){t=fn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return Gp(t),e===null&&Ls(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Ns(r,o)?l=null:i!==null&&Ns(r,i)&&(t.flags|=32),wh(e,t),ot(e,t,l,n),t.child;case 6:return e===null&&Ls(t),null;case 13:return Eh(e,t,n);case 4:return Vu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qr(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),gd(e,t,r,o,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ge(Al,r._currentValue),r._currentValue=l,i!==null)if(Ut(i.value,l)){if(i.children===o.children&&!pt.current){t=fn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=sn(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Ms(i.return,n,t),a.lanes|=n;break}s=s.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(A(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Ms(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}ot(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$r(t,n),o=It(o),r=r(o),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,o=zt(r,t.pendingProps),o=zt(r.type,o),yd(e,t,r,o,n);case 15:return gh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),ul(e,t),t.tag=1,ht(r)?(e=!0,Nl(t)):e=!1,$r(t,n),$p(t,r,o),Bs(t,r,o,n),zs(null,t,r,!0,e,n);case 19:return Sh(e,t,n);case 22:return yh(e,t,n)}throw Error(A(156,t.tag))};function zh(e,t){return cp(e,t)}function Mg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,n,r){return new Mg(e,t,n,r)}function nc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Og(e){if(typeof e=="function")return nc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Eu)return 11;if(e===Su)return 14}return 2}function Fn(e,t){var n=e.alternate;return n===null?(n=Rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function fl(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")nc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Nr:return ar(n.children,o,i,t);case ku:l=8,o|=8;break;case is:return e=Rt(12,n,t,o|2),e.elementType=is,e.lanes=i,e;case ls:return e=Rt(13,n,t,o),e.elementType=ls,e.lanes=i,e;case as:return e=Rt(19,n,t,o),e.elementType=as,e.lanes=i,e;case Yf:return ia(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kf:l=10;break e;case $f:l=9;break e;case Eu:l=11;break e;case Su:l=14;break e;case xn:l=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Rt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ar(e,t,n,r){return e=Rt(7,e,r,t),e.lanes=n,e}function ia(e,t,n,r){return e=Rt(22,e,r,t),e.elementType=Yf,e.lanes=n,e.stateNode={isHidden:!1},e}function Ua(e,t,n){return e=Rt(6,e,null,t),e.lanes=n,e}function Ka(e,t,n){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bg(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pa(0),this.expirationTimes=Pa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function rc(e,t,n,r,o,i,l,a,s){return e=new Bg(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fu(i),e}function Dg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:xr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Hh(e){if(!e)return Wn;e=e._reactInternals;e:{if(gr(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ht(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var n=e.type;if(ht(n))return zp(e,n,t)}return t}function Fh(e,t,n,r,o,i,l,a,s){return e=rc(n,r,!0,e,o,i,l,a,s),e.context=Hh(null),n=e.current,r=it(),o=Hn(n),i=sn(r,o),i.callback=t!=null?t:null,bn(n,i,o),e.current.lanes=o,vi(e,o,r),mt(e,r),e}function la(e,t,n,r){var o=t.current,i=it(),l=Hn(o);return n=Hh(n),t.context===null?t.context=n:t.pendingContext=n,t=sn(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=bn(o,t,l),e!==null&&(jt(e,o,l,i),ll(e,o,l)),l}function Fl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ad(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function oc(e,t){Ad(e,t),(e=e.alternate)&&Ad(e,t)}function bg(){return null}var Vh=typeof reportError=="function"?reportError:function(e){console.error(e)};function ic(e){this._internalRoot=e}aa.prototype.render=ic.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));la(e,t,null,null)};aa.prototype.unmount=ic.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pr(function(){la(null,e,null,null)}),t[cn]=null}};function aa(e){this._internalRoot=e}aa.prototype.unstable_scheduleHydration=function(e){if(e){var t=gp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tn.length&&t!==0&&t<Tn[n].priority;n++);Tn.splice(n,0,e),n===0&&wp(e)}};function lc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function sa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Id(){}function zg(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var c=Fl(l);i.call(c)}}var l=Fh(t,r,e,0,null,!1,!1,"",Id);return e._reactRootContainer=l,e[cn]=l.current,oi(e.nodeType===8?e.parentNode:e),pr(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var c=Fl(s);a.call(c)}}var s=rc(e,0,!1,null,null,!1,!1,"",Id);return e._reactRootContainer=s,e[cn]=s.current,oi(e.nodeType===8?e.parentNode:e),pr(function(){la(t,s,n,r)}),s}function ua(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var a=o;o=function(){var s=Fl(l);a.call(s)}}la(t,l,e,o)}else l=zg(n,t,e,o,r);return Fl(l)}mp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Oo(t.pendingLanes);n!==0&&(Pu(t,n|1),mt(t,Oe()),!(ue&6)&&(to=Oe()+500,$n()))}break;case 13:pr(function(){var r=dn(e,1);if(r!==null){var o=it();jt(r,e,1,o)}}),oc(e,1)}};xu=function(e){if(e.tag===13){var t=dn(e,134217728);if(t!==null){var n=it();jt(t,e,134217728,n)}oc(e,134217728)}};vp=function(e){if(e.tag===13){var t=Hn(e),n=dn(e,t);if(n!==null){var r=it();jt(n,e,t,r)}oc(e,t)}};gp=function(){return pe};yp=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};gs=function(e,t,n){switch(t){case"input":if(cs(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Jl(r);if(!o)throw Error(A(90));Gf(r),cs(r,o)}}}break;case"textarea":Zf(e,n);break;case"select":t=n.value,t!=null&&Wr(e,!!n.multiple,t,!1)}};op=Ju;ip=pr;var Hg={usingClientEntryPoint:!1,Events:[yi,Ir,Jl,np,rp,Ju]},Po={findFiberByHostInstance:tr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Fg={bundleType:Po.bundleType,version:Po.version,rendererPackageName:Po.rendererPackageName,rendererConfig:Po.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=sp(e),e===null?null:e.stateNode},findFiberByHostInstance:Po.findFiberByHostInstance||bg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gi.isDisabled&&Gi.supportsFiber)try{Gl=Gi.inject(Fg),Qt=Gi}catch(e){}}_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hg;_t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lc(t))throw Error(A(200));return Dg(e,t,null,n)};_t.createRoot=function(e,t){if(!lc(e))throw Error(A(299));var n=!1,r="",o=Vh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=rc(e,1,!1,null,null,n,!1,r,o),e[cn]=t.current,oi(e.nodeType===8?e.parentNode:e),new ic(t)};_t.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=sp(t),e=e===null?null:e.stateNode,e};_t.flushSync=function(e){return pr(e)};_t.hydrate=function(e,t,n){if(!sa(t))throw Error(A(200));return ua(null,e,t,!0,n)};_t.hydrateRoot=function(e,t,n){if(!lc(e))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=Vh;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Fh(t,null,e,1,n!=null?n:null,o,!1,i,l),e[cn]=t.current,oi(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new aa(t)};_t.render=function(e,t,n){if(!sa(t))throw Error(A(200));return ua(null,e,t,!1,n)};_t.unmountComponentAtNode=function(e){if(!sa(e))throw Error(A(40));return e._reactRootContainer?(pr(function(){ua(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1};_t.unstable_batchedUpdates=Ju;_t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!sa(n))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return ua(e,t,n,!1,r)};_t.version="18.2.0-next-9e3b772b8-20220608";function Wh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wh)}catch(e){console.error(e)}}Wh(),Ff.exports=_t;var jh=Ff.exports,Uh,Ld=jh;Uh=Ld.createRoot,Ld.hydrateRoot;var Vl=function(){return Vl=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Vl.apply(this,arguments)};function Vg(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Qs(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Wg(){return{current:0,next:function(){return++this.current}}}function jg(e){var t=Wg(),n={};return{add:function(r,o){var i=o!=null?o:"".concat(t.next(),"_").concat(e);return n[i]=r,i},resolve:function(r,o,i){var l=n[r];l&&(i(o)?l.resolve(o):l.reject(o),n[r]=null)}}}function Ug(e,t,n){var r=jg(n);return t(function(o){if(!(!o.detail||!o.detail.data||typeof o.detail.data!="object")&&"request_id"in o.detail.data){var i=o.detail.data,l=i.request_id,a=Vg(i,["request_id"]);l&&r.resolve(l,a,function(s){return!("error_type"in s)})}}),function(i,l){return l===void 0&&(l={}),new Promise(function(a,s){var c=r.add({resolve:a,reject:s},l.request_id);e(i,Vl(Vl({},l),{request_id:c}))})}}function Kg(){var e=36,t=2,n=3;return Math.random().toString(e).substring(t,t+n)}var ki=typeof window<"u",pl=!!(ki&&window.AndroidBridge),$o=!!(ki&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.VKWebAppClose),$a=!!(ki&&window.ReactNativeWebView&&typeof window.ReactNativeWebView.postMessage=="function"),sr=ki&&!pl&&!$o,$g=sr&&/(^\?|&)vk_platform=mobile_web(&|$)/.test(location.search),Yg=sr&&!$g,Md=sr?"message":"VKWebAppEvent",Xg=Qs(["VKWebAppInit","VKWebAppGetCommunityAuthToken","VKWebAppAddToCommunity","VKWebAppAddToHomeScreenInfo","VKWebAppClose","VKWebAppCopyText","VKWebAppCreateHash","VKWebAppGetUserInfo","VKWebAppSetLocation","VKWebAppSendToClient","VKWebAppGetClientVersion","VKWebAppGetPhoneNumber","VKWebAppGetEmail","VKWebAppGetGroupInfo","VKWebAppGetGeodata","VKWebAppGetCommunityToken","VKWebAppGetConfig","VKWebAppGetLaunchParams","VKWebAppSetTitle","VKWebAppGetAuthToken","VKWebAppCallAPIMethod","VKWebAppJoinGroup","VKWebAppLeaveGroup","VKWebAppAllowMessagesFromGroup","VKWebAppDenyNotifications","VKWebAppAllowNotifications","VKWebAppOpenPayForm","VKWebAppOpenApp","VKWebAppShare","VKWebAppShowWallPostBox","VKWebAppScroll","VKWebAppShowOrderBox","VKWebAppShowLeaderBoardBox","VKWebAppShowInviteBox","VKWebAppShowRequestBox","VKWebAppAddToFavorites","VKWebAppShowStoryBox","VKWebAppStorageGet","VKWebAppStorageGetKeys","VKWebAppStorageSet","VKWebAppFlashGetInfo","VKWebAppSubscribeStoryApp","VKWebAppOpenWallPost","VKWebAppCheckAllowedScopes","VKWebAppCheckBannerAd","VKWebAppHideBannerAd","VKWebAppShowBannerAd","VKWebAppCheckNativeAds","VKWebAppShowNativeAds","VKWebAppRetargetingPixel","VKWebAppConversionHit","VKWebAppShowSubscriptionBox","VKWebAppCheckSurvey","VKWebAppShowSurvey","VKWebAppScrollTop","VKWebAppScrollTopStart","VKWebAppScrollTopStop","VKWebAppShowSlidesSheet","VKWebAppTranslate","VKWebAppRecommend","VKWebAppAddToProfile"],Yg?["VKWebAppResizeWindow","VKWebAppAddToMenu","VKWebAppShowInstallPushBox","VKWebAppGetFriends","VKWebAppShowCommunityWidgetPreviewBox","VKWebAppCallStart","VKWebAppCallJoin","VKWebAppCallGetStatus"]:["VKWebAppShowImages"],!0),xo=ki?window.AndroidBridge:void 0,Qn=$o?window.webkit.messageHandlers:void 0,Ya=sr?parent:void 0;function Gg(e){var t=void 0,n=[],r=Kg();function o(w,k){xo&&xo[w]?xo[w](JSON.stringify(k)):Qn&&Qn[w]&&typeof Qn[w].postMessage=="function"?Qn[w].postMessage(k):$a?window.ReactNativeWebView.postMessage(JSON.stringify({handler:w,params:k})):Ya&&typeof Ya.postMessage=="function"&&Ya.postMessage({handler:w,params:k,type:"vk-connect",webFrameId:t,connectVersion:e},"*")}function i(w){n.push(w)}function l(w){var k=n.indexOf(w);k>-1&&n.splice(k,1)}function a(w){return pl?!!(xo&&typeof xo[w]=="function"):$o?!!(Qn&&Qn[w]&&typeof Qn[w].postMessage=="function"):sr?Xg.includes(w):!1}function s(){return $o||pl}function c(){return sr&&window.parent!==window}function d(){return s()||c()}function h(){return!d()}function p(w){if($o||pl)return Qs([],n,!0).map(function(g){return g.call(null,w)});var k=w==null?void 0:w.data;if(!(!sr||!k)){if($a&&typeof k=="string")try{k=JSON.parse(k)}catch(g){}var C=k.type,f=k.data,m=k.frameId;if(C){if(C==="VKWebAppSettings"){t=m;return}Qs([],n,!0).map(function(g){return g({detail:{type:C,data:f}})})}}}$a&&/(android)/i.test(navigator.userAgent)?document.addEventListener(Md,p):typeof window<"u"&&"addEventListener"in window&&window.addEventListener(Md,p);var v=Ug(o,i,r);return{send:v,sendPromise:v,subscribe:i,unsubscribe:l,supports:a,isWebView:s,isIframe:c,isEmbedded:d,isStandalone:h}}var Qg="2.14.1",Od;(function(e){e.REWARD="reward",e.INTERSTITIAL="interstitial"})(Od||(Od={}));var Bd;(function(e){e.RESIZE="resize",e.OVERLAY="overlay"})(Bd||(Bd={}));var Dd;(function(e){e.TOP="top",e.BOTTOM="bottom"})(Dd||(Dd={}));var bd;(function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center"})(bd||(bd={}));var zd;(function(e){e.CAMERA="camera",e.LOCATION="location",e.PHOTO="photo"})(zd||(zd={}));var Zs;(function(e){e.RU="ru",e.UK="uk",e.UA="ua",e.EN="en",e.BE="be",e.KZ="kz",e.PT="pt",e.ES="es"})(Zs||(Zs={}));var qs;(function(e){e.ADMIN="admin",e.EDITOR="editor",e.MEMBER="member",e.MODER="moder",e.NONE="none"})(qs||(qs={}));var Js;(function(e){e.DESKTOP_WEB="desktop_web",e.DESKTOP_WEB_MESSENGER="desktop_web_messenger",e.DESKTOP_APP_MESSENGER="desktop_app_messenger",e.MOBILE_WEB="mobile_web",e.MOBILE_ANDROID="mobile_android",e.MOBILE_ANDROID_MESSENGER="mobile_android_messenger",e.MOBILE_IPHONE="mobile_iphone",e.MOBILE_IPHONE_MESSENGER="mobile_iphone_messenger",e.MOBILE_IPAD="mobile_ipad"})(Js||(Js={}));var Zg=function(e){var t={};try{var n=new URLSearchParams(e),r=function(o){switch(o){case"0":return 0;case"1":return 1;default:return}};n.forEach(function(o,i){switch(i){case"vk_ts":case"vk_is_recommended":case"vk_profile_id":case"vk_has_profile_button":case"vk_testing_group_id":case"vk_user_id":case"vk_app_id":case"vk_group_id":t[i]=Number(o);break;case"sign":case"vk_chat_id":case"vk_ref":case"vk_access_token_settings":t[i]=o;break;case"odr_enabled":t.odr_enabled=o==="1"?1:void 0;break;case"vk_is_app_user":case"vk_are_notifications_enabled":case"vk_is_favorite":{t[i]=r(o);break}case"vk_language":{var l=function(c){return Object.values(Zs).some(function(d){return d===c})};t.vk_language=l(o)?o:void 0;break}case"vk_viewer_group_role":{var a=function(c){return Object.values(qs).some(function(d){return d===c})};t.vk_viewer_group_role=a(o)?o:void 0;break}case"vk_platform":{var s=function(c){return Object.values(Js).some(function(d){return d===c})};t.vk_platform=s(o)?o:void 0;break}}})}catch(o){console.warn(o)}return t},ft=Gg(Qg),ac=typeof window<"u"?u.useLayoutEffect:u.useEffect,qg={type:null,viewportWidth:0,viewportHeight:0},Jg=function(){var e=u.useState(qg),t=e[0],n=e[1];return ac(function(){var r=function(i){if(!(!("viewport_width"in i)||!("viewport_height"in i))){var l=ey(i);l&&n(l)}},o=function(i){var l=i.detail,a=l.type,s=l.data;a==="VKWebAppUpdateConfig"&&r(s)};return ft.subscribe(o),ft.send("VKWebAppGetConfig").then(r).catch(console.error),function(){ft.unsubscribe(o)}},[]),t};function ey(e){var t=e.adaptivity,n=e.viewport_width,r=e.viewport_height,o={type:null,viewportWidth:isFinite(n)?Number(n):0,viewportHeight:isFinite(r)?Number(r):0};switch(t){case"force_mobile":case"force_mobile_compact":case"adaptive":o.type=t}return o}var ty=function(){var e=u.useState(null),t=e[0],n=e[1];return ac(function(){if(ft.isEmbedded()){var r=function(i){var l=ny(i);l&&n(l)},o=function(i){var l=i.detail,a=l.type,s=l.data;a!=="VKWebAppUpdateConfig"||!("appearance"in s)||!("scheme"in s)||r(s)};return ft.subscribe(o),ft.send("VKWebAppGetConfig").then(r).catch(console.error),function(){return ft.unsubscribe(o)}}},[]),t};function ny(e){var t=e.scheme,n=e.appearance;return n||(t==="space_gray"||t==="vkcom_dark"?"dark":"light")}var Wl=function(){return Wl=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Wl.apply(this,arguments)},ry=150,oy=0,iy=function(){var e=u.useState(null),t=e[0],n=e[1];return ac(function(){var r=function(o){var i=ly(o);i&&n(i)};return ft.subscribe(r),function(){ft.unsubscribe(r)}},[]),t};function ly(e){var t=e.detail,n=t.type,r=t.data;switch(n){case"VKWebAppUpdateInsets":case"VKWebAppUpdateConfig":if(!("insets"in r))return null;var o=r.insets;if(o)return Wl(Wl({},o),{bottom:o.bottom>ry?oy:o.bottom})}return null}function Xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Xr(e,o,n[o])})}return e}function ay(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function H(e,t){if(e==null)return{};var n=ay(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var rt=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}();function sy(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function L(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[];return t.forEach(function(o){if(o)switch(typeof o>"u"?"undefined":sy(o)){case"string":r.push(o);break;case"object":Object.keys(o).forEach(function(i){o[i]&&r.push(i)});break;default:r.push("".concat(o))}}),r.join(" ")}var de=function(){};function Qi(e){return typeof e=="object"&&e!==null}function Kh(e,t){if(e===t)return!0;if(e==null||t==null||!Qi(e)&&!Qi(t))return e!==e&&t!==t;if(Qi(e)&&Qi(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e.hasOwnProperty(n)&&t.hasOwnProperty(n)){if(!Kh(e[n],t[n]))return!1}else return!1;return!0}return!1}function jn(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function $h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yh(e,t,n){return t&&Hd(e.prototype,t),n&&Hd(e,n),e}function Qe(e){return e!==void 0&&e!==!1&&e!==null&&e!==""}function eu(e){return typeof e=="string"||typeof e=="number"}function Xh(e){e||(e=rt?navigator.userAgent:""),e=e.toLowerCase();var t=fy(e),n=t||e.includes("ipad"),r=!n&&e.search(/iphone|ipod/)!==-1,o=r||n,i=o&&e.match(/os ([\d_]+) like mac os x/i),l=0,a=0;t?(l=13,a=0):i&&(i=i[1].split("_"),l=+i[0],a=+i[1]),i=null;var s=l<13&&!(l===11&&a<3),c=o&&dy(e),d=!1;rt&&(d=o&&screen.width===375&&screen.height===812&&window.devicePixelRatio===3);var h=e.search(/crios/i)!==-1;return{isIPad:n,isIPhone:r,isIOS:o,isIPadOS:t,iosMajor:l,iosMinor:a,isWKWebView:c,isScrollBasedViewport:s,isIPhoneX:d,isIOSChrome:h}}var Gh=Xh(),uy=function(){return Gh.isIOS}(),cy=function(){return Gh.isIPadOS}();function dy(e){if(!rt)return!1;var t=window.webkit;if(t&&t.messageHandlers)return!0;var n=/constructor/i.test(String(window.HTMLElement)),r=!!window.indexedDB;if(!(e.includes("safari")&&e.includes("version")&&!navigator.standalone)){if(!(!r&&n||!(window.statusbar&&window.statusbar.visible))){if(!n||r)return!0}}return!1}function fy(e){if(!rt)return!1;var t=!/ipPad|iPhone|iPod/i.test(e),n=/Mac OS/i.test(e);return t&&n&&"ontouchend"in document}var py=function(){var e={hasMouse:!1,hasTouchEvents:!1,hasHover:!1,hasTouch:!1};if(!rt)return e;if(uy&&!cy)e.hasMouse=!1,e.hasHover=!1,e.hasTouchEvents=!0,e.hasTouch=!0;else if(e.hasTouchEvents="ontouchstart"in document,e.hasTouch=e.hasTouchEvents||"maxTouchPoints"in navigator&&navigator.maxTouchPoints>0,e.hasTouch){var t=!/android|mobile|tablet/i.test(navigator.userAgent);e.hasMouse=typeof window.matchMedia=="function"&&window.matchMedia("(pointer)").matches?matchMedia("(pointer: fine)").matches:t,e.hasHover=e.hasMouse&&(typeof window.matchMedia=="function"&&window.matchMedia("(hover)").matches?matchMedia("(hover: hover)").matches:t)}else e.hasMouse=!0,e.hasHover=!0;return e}(),Qh=function(){return py.hasMouse}();const ca=u.createContext({}),vt=()=>u.useContext(ca),Fd=e=>typeof e>"u"||e===null||typeof e=="boolean"||JSON.stringify(e)==="{}"?"":e.toString(),Zh=e=>!(e instanceof Array)&&!u.isValidElement(e)?Fd(e):u.Children.toArray(e).reduce((t,n)=>{let r="";const o=u.isValidElement(n),i=o&&"children"in n.props;return o&&i?r=Zh(n.props.children):o&&!i?r="":r=Fd(n),t.concat(r)},""),_e={ENTER:"Enter",SPACE:"Space",TAB:"Tab",ESCAPE:"Escape",HOME:"Home",END:"End",DELETE:"Delete",BACKSPACE:"Backspace",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"},hy=new Map([["Enter",_e.ENTER],["Space",_e.SPACE],["Spacebar",_e.SPACE],[" ",_e.SPACE],["Tab",_e.TAB],["Escape",_e.ESCAPE],["Home",_e.HOME],["End",_e.END],["ArrowLeft",_e.ARROW_LEFT],["ArrowRight",_e.ARROW_RIGHT],["ArrowUp",_e.ARROW_UP],["ArrowDown",_e.ARROW_DOWN],["PageUp",_e.PAGE_UP],["PageDown",_e.PAGE_DOWN]]);function my(e){const t=hy.get(e.key);return t||null}const vy=new Set([_e.TAB,_e.ARROW_LEFT,_e.ARROW_RIGHT,_e.ARROW_UP,_e.ARROW_DOWN,_e.BACKSPACE,_e.DELETE]);function gy(e){return vy.has(e.key)}function yy(e){const t=e.target,{tagName:n}=t,r=t.getAttribute("role"),o=t.isContentEditable!==!0&&n!=="INPUT"&&n!=="TEXTAREA"&&(r==="button"||r==="link"||r==="menuitem"),i=n==="A"&&t.hasAttribute("href"),l=my(e);return o&&(l===_e.SPACE&&r==="button"||l===_e.ENTER&&!i)}function wy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function te(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wy(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function ky(e){return te(I({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function qh(e){return Jh(e)?(e.nodeName||"").toLowerCase():"#document"}function hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ey(e){var t;return(t=(Jh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jh(e){return jn(e,Node)||jn(e,hn(e).Node)}function em(e){return jn(e,Element)||jn(e,hn(e).Element)}function sc(e){return jn(e,HTMLElement)||jn(e,hn(e).HTMLElement)}function Vd(e){return typeof ShadowRoot>"u"?!1:jn(e,ShadowRoot)||jn(e,hn(e).ShadowRoot)}function tm(e){var t=Cy(e),n=t.overflow,r=t.overflowX,o=t.overflowY,i=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+o+r)&&!["inline","contents"].includes(i)}function Sy(e){return["html","body","#document"].includes(qh(e))}function Cy(e){return hn(e).getComputedStyle(e)}function tu(e){return em(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _y(e){if(qh(e)==="html")return e;var t=e.assignedSlot||e.parentNode||Vd(e)&&e.host||Ey(e);return Vd(t)?t.host:t}function uc(e){var t=_y(e);return Sy(t)?e.ownerDocument?e.ownerDocument.body:e.body:sc(t)&&tm(t)?t:uc(t)}function nu(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);var o=uc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=hn(o);return i?t.concat(l,l.visualViewport||[],tm(o)?o:[],l.frameElement&&n?nu(l.frameElement):[]):t.concat(o,nu(o,[],n))}const Py=()=>({window:rt?window:void 0,document:rt?document:void 0}),xy=u.createContext(Py()),qt=()=>u.useContext(xy),nm=e=>e!=null&&"navigator"in e,Ny=e=>e!=null&&"tagName"in e&&e.tagName==="BODY",Ty=e=>e!=null&&"tagName"in e&&e.tagName==="HTML";function ru(e){e&&e.activeElement&&e.activeElement.blur()}const Ry=["none","initial","inherit","unset"],Ay=["auto","initial","inherit","unset"];function Iy(e){let t=e.parentNode;for(;t!==null;){if(sc(t)){const{transform:n,willChange:r}=getComputedStyle(t);if(!Ry.includes(n)||!Ay.includes(r)){const{x:o,y:i}=t.getBoundingClientRect();return{x:o,y:i}}}t=t.parentNode}return{x:0,y:0}}const ou=(e,t=!1)=>{const n=nm(e)?e.document.documentElement:e,r=n.getBoundingClientRect();Ty(n)&&(r.height=n.clientHeight);let o=0,i=0;if(t){const{x:l,y:a}=Iy(n);o=l,i=a}return ky({x:r.left-o,y:r.top-i,width:r.width,height:r.height})},Ly=e=>{const t=uc(e);return Ny(t)?hn(t):sc(e)?t:null},My=e=>nm(e)?e.document.documentElement.scrollHeight:e.scrollHeight,Oy=e=>{const t=em(e)?hn(e):e,n=ou(e),r=t.scrollY+n.top,o=r+n.height;return{relative:n,edges:{y:[r,o]}}},iu=e=>hn(e).document.body,lt=rt?u.useLayoutEffect:u.useEffect,Wd="enableKeyboardInput",jd="disableKeyboardInput",Yt={passive:!0,capture:!0};function By(){const{document:e}=qt(),t=u.useRef(!1);return lt(()=>{if(!e)return;const n=i=>{gy(i)&&(t.current=!0)},r=()=>{t.current=!0},o=()=>{t.current=!1};return e.addEventListener("keydown",n,Yt),e.addEventListener(Wd,r,Yt),e.addEventListener(jd,o,Yt),e.addEventListener("mousedown",o,Yt),e.addEventListener("touchstart",o,Yt),()=>{e.removeEventListener("keydown",n,Yt),e.removeEventListener(Wd,r,Yt),e.removeEventListener(jd,o,Yt),e.removeEventListener("mousedown",o,Yt),e.removeEventListener("touchstart",o,Yt)}},[e]),t}function Ei(e){const t=u.useRef(e);return Kh(t.current,e)||(t.current=e),t.current}const rm={android:{light:"vkui--vkBase--light",dark:"vkui--vkBase--dark"},ios:{light:"vkui--vkIOS--light",dark:"vkui--vkIOS--dark"},vkcom:{light:"vkui--vkCom--light",dark:"vkui--vkCom--dark"}},Xa={};function Dy(e=""){if(Xa[e])return Xa[e];const t={userAgent:e,system:"",systemVersion:null},{isIOS:n,iosMajor:r,iosMinor:o}=Xh(e);return n&&(t.system="ios",t.systemVersion={major:r,minor:o}),Xa[e]=t,t}function by(e){return{matches:!1,media:e,onchange:de,addListener:de,removeListener:de,addEventListener:de,removeEventListener:de,dispatchEvent(){return!1}}}const Ga={ANDROID:"android",IOS:"ios",VKCOM:"vkcom"};function zy(e){return e||(e=Dy()),e.system==="ios"?"ios":"android"}const da=u.createContext({hasCustomPanelHeaderAfter:!1,customPanelHeaderAfterMinWidth:90,isWebView:!1,transitionMotionEnabled:!0,platform:zy(),appearance:void 0,tokensClassNames:rm,locale:"ru"}),ao=()=>u.useContext(da),om="light",Qa={DARK:"dark",LIGHT:"light"},Hy=e=>Ga.ANDROID in e||Ga.IOS in e||Ga.VKCOM in e,Fy=(e,t)=>t?t[e]:void 0,Vy=(e,t)=>t?t[e]:void 0,im=()=>{const{platform:e,appearance:t=om,tokensClassNames:n}=u.useContext(da),r=Hy(n)?Vy(e,n):n,o=Fy(t,r);return o||rm[e][t]},Wy=({children:e})=>{const t=im();return u.cloneElement(e,{className:L(t,e.props.className)})},lm=({children:e})=>u.Children.map(e,t=>u.isValidElement(t)?u.createElement(Wy,null,t):t),jy={appRoot:u.createRef(),mode:"full",portalRoot:u.createRef(),embedded:!1,keyboardInput:!1,disablePortal:!1},Si=u.createContext(jy),jl=(e,t,n)=>Math.max(t,Math.min(e,n)),am=e=>{Object.assign(e.style,{position:"",top:"",left:"",right:"",overflowY:"",overflowX:""})},Uy=e=>{const t=e.document.documentElement.clientHeight-e.innerHeight;return e.pageYOffset-t},cc=u.createContext({getScroll:()=>({x:0,y:0}),scrollTo:de,isScrollLock:!1,enableScrollLock:de,disableScrollLock:de}),sm=()=>u.useContext(cc),Ky=({children:e})=>{const{window:t,document:n}=qt(),[r,o]=u.useState(!1),i=u.useRef(new Set),l=u.useCallback(()=>({x:t.pageXOffset,y:Uy(t)}),[t]),a=u.useCallback((h=0,p=0)=>{t.scrollTo(h?jl(h,0,n.body.scrollWidth-t.innerWidth):0,p?jl(p,0,n.body.scrollHeight-t.innerHeight):0)},[n,t]),s=u.useCallback(()=>{i.current.forEach(k=>{k()});const h=t.pageYOffset,p=t.pageXOffset,v=t.innerWidth>n.documentElement.clientWidth?"scroll":"",w=t.innerHeight>n.documentElement.clientHeight?"scroll":"";Object.assign(n.body.style,{position:"fixed",top:"-".concat(h,"px"),left:"-".concat(p,"px"),right:"0",overflowY:v,overflowX:w}),o(!0)},[n,t]),c=u.useCallback(()=>{const h=n.body.style.top,p=n.body.style.left;am(n.body),t.scrollTo(-parseInt(p||"0"),-parseInt(h||"0")),o(!1)},[n,t]),d=u.useMemo(()=>({getScroll:l,scrollTo:a,isScrollLock:r,disableScrollLock:c,enableScrollLock:s,beforeScrollLockFnSetRef:i}),[l,a,r,c,s]);return u.createElement(cc.Provider,{value:d},e)},$y=({elRef:e,children:t})=>{const[n,r]=u.useState(!1),o=u.useRef(new Set),i=u.useCallback(()=>{var d,h,p,v;return{x:(p=(d=e.current)===null||d===void 0?void 0:d.scrollLeft)!==null&&p!==void 0?p:0,y:(v=(h=e.current)===null||h===void 0?void 0:h.scrollTop)!==null&&v!==void 0?v:0}},[e]),l=u.useCallback((d=0,h=0)=>{const p=e.current;p==null||p.scrollTo(d?jl(d,0,p.scrollWidth-p.clientWidth):0,h?jl(h,0,p.scrollHeight-p.clientHeight):0)},[e]),a=u.useCallback(()=>{const d=e.current;if(!d)return;o.current.forEach(k=>{k()});const h=d.scrollTop,p=d.scrollLeft,v=d.scrollWidth>d.clientWidth?"scroll":"",w=d.scrollHeight>d.clientHeight?"scroll":"";Object.assign(d.style,{position:"absolute",top:"-".concat(h,"px"),left:"-".concat(p,"px"),right:"0",overflowY:v,overflowX:w}),r(!0)},[e]),s=u.useCallback(()=>{const d=e.current;if(!d)return;const h=d.style.top,p=d.style.left;am(d),d.scrollTo(-parseInt(p||"0"),-parseInt(h||"0")),r(!1)},[e]),c=u.useMemo(()=>({getScroll:i,scrollTo:l,isScrollLock:n,disableScrollLock:s,enableScrollLock:a,beforeScrollLockFnSetRef:o}),[i,l,n,s,a]);return u.createElement(cc.Provider,{value:c},t)},Yy=(e=!0)=>{const{enableScrollLock:t,disableScrollLock:n,isScrollLock:r}=sm();lt(()=>e&&!r?(t(),n):de,[t,n,e])},um=e=>typeof e=="object"&&e!==null&&e.hasOwnProperty("current");function Xy({mode:e,layout:t,tokensClassName:n,sizeX:r,sizeY:o}){const i=["vkui__root"],l=[n];if(e==="full"||e==="embedded"){if(t){const a={card:"vkui--layout-card",plain:"vkui--layout-plain"};l.push(a[t])}if(r!=="compact"){const a={none:"vkui--sizeX-none",regular:"vkui--sizeX-regular"};l.push(a[r])}if(o!=="regular"){const a={none:"vkui--sizeY-none",compact:"vkui--sizeY-compact"};l.push(a[o])}e==="embedded"&&i.push("vkui__root--embedded")}return[i,l]}const Gy=e=>e?e.parentElement:null,Qy=e=>um(e)?e.current:e,Ud="--vkui_internal--safe_area_inset_",Kd=(e,t,n)=>{if(!e)return()=>{};for(const r in e)if(e.hasOwnProperty(r)&&typeof e[r]=="number"){const o="".concat(Ud).concat(r),i=e[r];t.style.setProperty(o,"".concat(i,"px")),n&&n.style.setProperty(o,"".concat(i,"px"))}return function(){for(const o in e)if(e.hasOwnProperty(o)){const i="".concat(Ud).concat(o);t.style.removeProperty(i),n&&n.style.removeProperty(i)}}},Zy=e=>{var{children:t,mode:n="full",scroll:r="global",portalRoot:o=null,disablePortal:i=!1,disableParentTransformForPositionFixedElements:l,className:a,safeAreaInsets:s,layout:c}=e,d=H(e,["children","mode","scroll","portalRoot","disablePortal","disableParentTransformForPositionFixedElements","className","safeAreaInsets","layout"]);const{hasPointer:h,sizeX:p="none",sizeY:v="none"}=vt(),w=im(),k=Ei(s),C=By(),f=u.useRef(null),m=u.useRef(null);lt(function(){const y=o?Qy(o):null;if(y)return m.current=y,function(){m.current=null};const N=iu(f.current),P=N.ownerDocument.createElement("div");return N.appendChild(P),m.current=P,function(){N.removeChild(P),m.current=null}},[o]),lt(function(){if(!f.current||!m.current)return;const y=Gy(f.current),P=iu(f.current).ownerDocument.documentElement,[O,D]=Xy({mode:n,layout:c,tokensClassName:w,sizeX:p,sizeY:v});switch(n){case"full":{y&&y.classList.add(...O),P.classList.add(...D,"vkui");const j=Kd(k,P);return function(){y&&y.classList.remove(...O),P.classList.remove(...D,"vkui"),j()}}case"embedded":{if(y){y.classList.add(...O,...D),l||y.style.setProperty("transform","translate3d(0, 0, 0)");const j=Kd(k,y,m.current);return function(){y.classList.remove(...O,...D),l||y.style.removeProperty("transform"),j()}}return}case"partial":return}},[n,c,l,w,p,v,k]);const g=u.useMemo(()=>r==="contain"?$y:Ky,[r]),_=u.createElement(Si.Provider,{value:{appRoot:f,portalRoot:m,embedded:n==="embedded",mode:n,disablePortal:i,layout:c,get keyboardInput(){return C.current}}},u.createElement(g,{elRef:f},t));return n==="partial"?_:u.createElement("div",I({ref:f,className:L("vkuiAppRoot",h===void 0?"vkuiAppRoot--pointer-none":!h&&"vkuiAppRoot--pointer-has-not",a)},d),_)},ze=e=>{var{Component:t="div",baseClassName:n,className:r,getRootRef:o}=e,i=H(e,["Component","baseClassName","className","getRootRef"]);return u.createElement(t,I({ref:o,className:L(n,r)},i))},qy={1:"vkuiTypography--weight-1",2:"vkuiTypography--weight-2",3:"vkuiTypography--weight-3"},so=e=>{var{weight:t,Component:n="span",normalize:r}=e,o=H(e,["weight","Component","normalize"]);return u.createElement(ze,I({Component:n,baseClassName:L("vkuiTypography",r&&"vkuiTypography--normalize",t&&qy[t])},o))},Jy={1:"vkuiTitle--level-1",2:"vkuiTitle--level-2",3:"vkuiTitle--level-3"},zr=e=>{var{className:t,level:n="1",Component:r="span",normalize:o=!0}=e,i=H(e,["className","level","Component","normalize"]);return u.createElement(so,I({Component:r,normalize:o,className:L(t,Jy[n])},i))},e1={1:"vkuiHeadline--level-1",2:"vkuiHeadline--level-2"},t1={none:"vkuiHeadline--sizeY-none",compact:"vkuiHeadline--sizeY-compact"},pi=e=>{var{className:t,weight:n="3",level:r="1",Component:o="span",normalize:i=!0}=e,l=H(e,["className","weight","level","Component","normalize"]);const{sizeY:a="none"}=vt();return u.createElement(so,I({Component:o,normalize:i,weight:n,className:L(t,a!=="regular"&&t1[a],e1[r])},l))},n1={none:"vkuiText--sizeY-none",compact:"vkuiText--sizeY-compact"},cm=e=>{var{className:t,Component:n="span",normalize:r=!0}=e,o=H(e,["className","Component","normalize"]);const{sizeY:i="none"}=vt();return u.createElement(so,I({Component:n,normalize:r,className:L(t,"vkuiText",i!=="regular"&&n1[i])},o))},r1=e=>{var{className:t,Component:n="span",normalize:r=!1}=e,o=H(e,["className","Component","normalize"]);return u.createElement(so,I({Component:n,normalize:r,className:L(t,"vkuiParagraph")},o))},o1={none:"vkuiSubhead--sizeY-none",compact:"vkuiSubhead--sizeY-compact"},dm=e=>{var{className:t,Component:n="span",normalize:r=!0}=e,o=H(e,["className","Component","normalize"]);const{sizeY:i="none"}=vt();return u.createElement(so,I({Component:n,normalize:r,className:L(t,"vkuiSubhead",i!=="regular"&&o1[i])},o))},no=e=>{var{className:t,caps:n,Component:r="span",normalize:o=!0}=e,i=H(e,["className","caps","Component","normalize"]);return u.createElement(so,I({Component:r,normalize:o,className:L(t,"vkuiFootnote",n&&"vkuiFootnote--caps")},i))},bt={DESKTOP:1280,TABLET:1024,SMALL_TABLET:768,MOBILE:320,MOBILE_LANDSCAPE_HEIGHT:415,MEDIUM_HEIGHT:720};function Ul(e){return"(min-width: ".concat(e,"px)")}function fm(e){return"(max-width: ".concat(e-.1,"px)")}function hl(e,t){return"".concat(Ul(e)," and ").concat(fm(t))}function Kl(e){return"(min-height: ".concat(e,"px)")}function pm(e){return"(max-height: ".concat(e-.1,"px)")}function i1(e,t){return"".concat(Kl(e)," and ").concat(pm(t))}const l1={DESKTOP_PLUS:Ul(bt.DESKTOP),TABLET:hl(bt.TABLET,bt.DESKTOP),SMALL_TABLET_PLUS:Ul(bt.SMALL_TABLET),SMALL_TABLET:hl(bt.SMALL_TABLET,bt.TABLET),MOBILE:hl(bt.MOBILE,bt.SMALL_TABLET),MEDIUM_HEIGHT:Kl(bt.MEDIUM_HEIGHT),MOBILE_LANDSCAPE_HEIGHT:Kl(bt.MOBILE_LANDSCAPE_HEIGHT)};var kt={BREAKPOINTS:bt,MEDIA_QUERIES:l1,widthHalfInterval:hl,widthPlus:Ul,widthMinus:fm,heightHalfInterval:i1,heightPlus:Kl,heightMinus:pm};const be={SMALL_MOBILE:1,MOBILE:2,SMALL_TABLET:3,TABLET:4,DESKTOP:5},Yo={EXTRA_SMALL:1,SMALL:2,MEDIUM:3},ml={COMPACT:"compact",REGULAR:"regular"},a1={[be.SMALL_MOBILE]:"smallMobileMinus",[be.MOBILE]:"mobile",[be.SMALL_TABLET]:"smallTablet",[be.TABLET]:"tablet",[be.DESKTOP]:"desktopPlus"};function s1(e){return e>=kt.BREAKPOINTS.DESKTOP?be.DESKTOP:e>=kt.BREAKPOINTS.TABLET?be.TABLET:e>=kt.BREAKPOINTS.SMALL_TABLET?be.SMALL_TABLET:e>=kt.BREAKPOINTS.MOBILE?be.MOBILE:be.SMALL_MOBILE}function u1(e){return e>=kt.BREAKPOINTS.MEDIUM_HEIGHT?Yo.MEDIUM:e>=kt.BREAKPOINTS.MOBILE_LANDSCAPE_HEIGHT?Yo.SMALL:Yo.EXTRA_SMALL}function c1(e){return e<=be.MOBILE?"compact":"regular"}function d1(e,t){return e!==void 0&&e>=be.SMALL_TABLET&&t}function f1(e){return e!==void 0&&e<=Yo.EXTRA_SMALL}function p1(e,t,n,r){const o=r==="vkcom";if((e===void 0||n===void 0)&&(e===void 0||t===void 0)||n===void 0&&t===void 0)return o?!0:null;const i=e>=be.SMALL_TABLET,l=n||(t!==void 0?t>=Yo.MEDIUM:!1);return i&&l||o}function h1(e,t="none"){if(t==="none")return e.hasOwnProperty("none")?e.none:null;const n=[],r=a1[t];return e.hasOwnProperty(r)&&n.push(e[r]),t>=be.MOBILE&&e.hasOwnProperty("mobilePlus")&&n.push(e.mobilePlus),t>=be.SMALL_TABLET?e.hasOwnProperty("smallTabletPlus")&&n.push(e.smallTabletPlus):e.hasOwnProperty("smallTabletMinus")&&n.push(e.smallTabletMinus),t>=be.TABLET?e.hasOwnProperty("tabletPlus")&&n.push(e.tabletPlus):e.hasOwnProperty("tabletMinus")&&n.push(e.tabletMinus),n.length>0?n.join(" "):null}const hm=(...e)=>(...t)=>e.filter(n=>typeof n=="function").forEach(n=>n(...t));function dc(...e){const t=e.reduce((n,r)=>(Object.entries(r).forEach(([o,i])=>{n.hasOwnProperty(o)||(n[o]=[]),n[o].push(i)}),n),{});return Object.entries(t).reduce((n,[r,o])=>(n[r]=hm(...o),n),{})}function m1(e=!0){const[t,n]=u.useState(!1),{keyboardInput:r}=u.useContext(Si),o=u.useCallback(a=>{a.stopPropagation(),n(!0)},[n]),i=u.useCallback(a=>{a.stopPropagation(),n(!1)},[n]);return{focusVisible:e?r&&t:t,onFocus:o,onBlur:i}}const mm={inside:"vkui-focus-visible--mode-inside",outside:"vkui-focus-visible--mode-outside"},v1=e=>e==="inside"||e==="outside";function g1({focusVisible:e=!1,mode:t="inside"}){const n=v1(t)?mm[t]:t;return L("vkui-focus-visible",e&&"vkui-focus-visible--focused",e&&n)}function y1(){function e(t){var n,r;yy(t)&&(t.preventDefault(),(n=(r=t.target).click)===null||n===void 0||n.call(r))}return{onKeyDown:e}}function w1(e,t=0){const[n,r]=u.useState(e),o=u.useRef(),i=u.useCallback((l,a=t)=>{if(clearTimeout(o.current),a===0){r(l);return}o.current=setTimeout(()=>r(l),a)},[t]);return[n,i]}const k1=600,E1=70;function S1({hovered:e,hoverClassName:t,hasHover:n=!0}){const[r,o]=u.useState(!1);return{hover:n&&(e||r)?t:void 0,onPointerEnter:n?s=>{s.pointerType!=="touch"&&o(!0)}:de,onPointerLeave:n?()=>{o(!1)}:de}}function C1({activated:e,activeClassName:t,activeEffectDelay:n,hasActive:r=!0}){const[o,i]=w1(!1),l=u.useMemo(()=>new Set,[]),a=r&&(e||o)?t:void 0,s=()=>i(!0,E1),c=h=>{if(l.has(h.pointerId)){l.delete(h.pointerId);return}i(!1)};return{active:a,onPointerLeave:r?c:de,onPointerDown:r?s:de,onPointerCancel:r?c:de,onPointerUp:r?h=>{l.add(h.pointerId),i(!0),i(!1,n)}:de}}const vm=u.createContext(void 0);function _1(){const e=u.useContext(vm)||de,[t,n]=u.useState(!1),r=hm(n,e);return[t,e,r]}function P1(e){var{hasHover:t,hasActive:n}=e,r=H(e,["hasHover","hasActive"]);const[o,i,l]=_1(),a=I({hasHover:t&&!o,hasActive:n&&!o},r),s=S1(I({},a)),{hover:c}=s,d=H(s,["hover"]),h=C1(a),{active:p}=h,v=H(h,["active"]),w=L(c,p),k=dc(d,v);return u.useEffect(()=>{i(!!w)},[i,w]),I({stateClassName:w,setLockBubblingImmediate:l},k)}const x1=e=>{var t=H(e,["href","onClick","onClickCapture","activeClassName","hoverClassName","hasActive","hasHover","hovered","activated","activeEffectDelay"]);return u.createElement(ze,t)},N1=e=>{var{baseClassName:t,children:n,focusVisibleMode:r="inside",activeClassName:o,hoverClassName:i,activeEffectDelay:l=k1,hasHover:a=!0,hasActive:s=!0,hovered:c,activated:d,onPointerEnter:h,onPointerLeave:p,onPointerDown:v,onPointerCancel:w,onPointerUp:k,onBlur:C,onFocus:f,onKeyDown:m}=e,g=H(e,["baseClassName","children","focusVisibleMode","activeClassName","hoverClassName","activeEffectDelay","hasHover","hasActive","hovered","activated","onPointerEnter","onPointerLeave","onPointerDown","onPointerCancel","onPointerUp","onBlur","onFocus","onKeyDown"]);const _=m1(),{focusVisible:T}=_,y=H(_,["focusVisible"]),N=g1({focusVisible:T,mode:r}),P=P1({activeClassName:o,hoverClassName:i,activeEffectDelay:l,hasHover:a,hasActive:s,hovered:c,activated:d}),{stateClassName:O,setLockBubblingImmediate:D}=P,j=H(P,["stateClassName","setLockBubblingImmediate"]),J=y1(),oe=dc(y,j,J,{onPointerEnter:h,onPointerLeave:p,onPointerDown:v,onPointerCancel:w,onPointerUp:k,onBlur:C,onFocus:f,onKeyDown:m});return u.createElement(ze,I({baseClassName:L(t,"vkuiClickable__realClickable",N,O)},oe,g),u.createElement(vm.Provider,{value:D},n))};function gm(e){return(e.href!==void 0||e.onClick!==void 0||e.onClickCapture!==void 0||e.Component==="label")&&!e.disabled}function T1({Component:e,onClick:t,onClickCapture:n,href:r,disabled:o}){return e!==void 0?{Component:e}:r!==void 0?{Component:"a","aria-disabled":o}:t!==void 0||n!==void 0?{Component:"div",role:"button",tabIndex:o?void 0:0,"aria-disabled":o}:{}}const ym=e=>{var{focusVisibleMode:t="inside",baseClassName:n}=e,r=H(e,["focusVisibleMode","baseClassName"]);const o=T1(r),i=gm(r),l=L(n,"vkuiClickable__host");return i?u.createElement(N1,I({baseClassName:l,focusVisibleMode:t},o,r)):u.createElement(x1,I({baseClassName:l},o,r))};function We(){const{platform:e}=ao();return e}function fc(e,t){const n=u.useRef({cb:e,duration:t});lt(()=>{n.current.cb=e,n.current.duration=t},[e,t]);const r=u.useRef(),o=u.useCallback(()=>{rt&&(r!=null&&r.current)&&clearTimeout(r.current)},[]),i=u.useCallback((l=n.current.duration)=>{o(),rt&&(r.current=setTimeout(()=>{const{cb:a}=n.current;typeof a=="function"&&a()},l))},[o]);return lt(()=>o,[]),{set:i,clear:o}}function R1(e){const t=e==null?void 0:e.getBoundingClientRect();return{top:t==null?void 0:t.top,left:t==null?void 0:t.left,width:e==null?void 0:e.offsetWidth,height:e==null?void 0:e.offsetHeight}}const A1=(e,t)=>We()==="android"&&!t&&e==="background",I1=70,$d=225,L1=(e,t)=>{const[n,r]=u.useState([]),o=u.useMemo(()=>new Map,[]),i=fc(()=>r([]),$d);function l(d,h,p){const v=Date.now(),w=n.filter(k=>k.id+$d>v);r([...w,{x:d,y:h,id:v,pointerId:p}]),i.set(),o.delete(p)}const a=d=>{const{top:h,left:p}=R1(d.currentTarget),v=d.clientX-(p!=null?p:0),w=d.clientY-(h!=null?h:0);o.set(d.pointerId,setTimeout(()=>l(v,w,d.pointerId),I1))},s=d=>{const h=o.get(d.pointerId);clearTimeout(h),o.delete(d.pointerId)},c=(!Qh||t===!1)&&e;return{clicks:n,onPointerDown:c?a:de,onPointerCancel:c?s:de}},M1=({needRipple:e=!0,clicks:t})=>u.createElement("span",{"aria-hidden":!0,className:L("vkuiTappable__stateLayer",e&&"vkuiTappable__ripple")},t.map(n=>u.createElement("span",{key:n.id,className:"vkuiTappable__wave",style:{top:n.y,left:n.x}}))),$l="background",O1={background:"vkuiTappable--hovered-background",opacity:"vkuiTappable--hovered-opacity",none:""};function B1(e=$l){const t=O1[e];return t!==void 0?t:e}const D1={background:"vkuiTappable--activated-background",opacity:"vkuiTappable--activated-opacity",none:""};function b1(e=$l){const t=D1[e];return t!==void 0?t:e}const z1={none:"vkuiTappable--sizeX-none",compact:"vkuiTappable--sizeX-compact"};function H1(e){switch(e){case void 0:return"vkuiTappable--hasPointer-none";case!1:return"vkuiTappable--hasPointer-false"}}const yr=e=>{var{baseClassName:t,borderRadiusMode:n="auto",children:r,hoverMode:o=$l,activeMode:i=$l,onPointerDown:l,onPointerCancel:a}=e,s=H(e,["baseClassName","borderRadiusMode","children","hoverMode","activeMode","onPointerDown","onPointerCancel"]);const c=gm(s),{sizeX:d="none",hasPointer:h}=vt(),p=A1(i,h),v=L1(p,h),{clicks:w}=v,k=H(v,["clicks"]),C=dc(k,{onPointerDown:l,onPointerCancel:a}),f=s.Component==="button"?{type:"button"}:{};return u.createElement(ym,I({baseClassName:L(t,"vkuiTappable",d!==ml.REGULAR&&z1[d],n==="inherit"&&"vkuiTappable--borderRadiusInherit",H1(h)),hoverClassName:B1(o),activeClassName:b1(i)},f,C,s),r,c&&(o==="background"||i==="background")&&u.createElement(M1,{needRipple:p,clicks:w}))};function F1(e,t){t&&(typeof t=="function"?t(e):t.current=e)}const V1=e=>{const t={};for(const n in e)e.hasOwnProperty(n)&&e[n]!==void 0&&(t[n]=e[n]);return t};function Ci(...e){const t=u.useRef(null);return u.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,e.forEach(r=>{r&&F1(n,r)})}}),e)}function er(e,t,n){const r=u.useRef(t);lt(()=>{r.current=t},[t]);const o=u.useCallback(s=>r.current&&r.current(s),[]),i=u.useRef(de),l=u.useCallback(()=>{i.current(),i.current=de},[]),a=u.useCallback(s=>{if(!rt||(l(),!s))return;const c=I({},n);s.addEventListener(e,o,c),i.current=()=>s.removeEventListener(e,o,c)},[n,o,e,l]);return u.useEffect(()=>l,[l]),u.useMemo(()=>({add:a,remove:l}),[a,l])}function wm(e,t,n,r){const o=er(t,n,r);lt(()=>{n&&e?o.add(e):o.remove()},[!!n,!!e])}const W1="data-onboarding-tooltip-container",fa=u.forwardRef((e,t)=>{var{fixed:n=!1}=e,r=H(e,["fixed"]);return r[W1]=n?"fixed":"true",u.createElement("div",te(I({},r),{ref:t}))});fa.displayName="OnboardingTooltipContainer";const pc=u.createContext({colRef:null,animate:!0}),j1=()=>u.useContext(pc),U1={top:"vkuiFixedLayout--vertical-top",bottom:L("vkuiFixedLayout--vertical-bottom","vkuiInternalFixedLayout--vertical-bottom")},K1=e=>{var{children:t,style:n,vertical:r,getRootRef:o,filled:i,className:l,useParentWidth:a}=e,s=H(e,["children","style","vertical","getRootRef","filled","className","useParentWidth"]);const c=We(),d=Ci(o),[h,p]=u.useState(void 0),{window:v}=qt(),{colRef:w}=u.useContext(pc),k=()=>{if(a&&d.current){var C;const f=(C=d.current.parentElement)===null||C===void 0?void 0:C.getBoundingClientRect().width;p(f?"".concat(f,"px"):void 0)}else if(w!=null&&w.current){const f=getComputedStyle(w.current);p("".concat(w.current.clientWidth-parseFloat(f.paddingLeft)-parseFloat(f.paddingRight),"px"))}else p(void 0)};return u.useEffect(k,[w,c,d,a]),wm(v,"resize",k),u.createElement(fa,te(I({},s),{fixed:!0,ref:d,className:L("vkuiFixedLayout",c==="ios"&&"vkuiInternalFixedLayout--ios",i&&"vkuiFixedLayout--filled",r&&U1[r],l),style:te(I({},n),{width:h})}),t)};function $1(e){return e!==void 0}function Y1(e,t,n){const r=t.filter($1);return r.length?e(...r):n}function X1(e,t){return Y1(Math.min,e,t)}const hc=u.createContext({size:0});function mc(e){return e<=36?12:e>36&&e<=48?16:e>48&&e<=64?20:mc.MAX_SIZE}mc.MAX_SIZE=24;const G1={stroke:"vkuiImageBaseBadge--background-stroke",shadow:"vkuiImageBaseBadge--background-shadow"},Q1=e=>{var{background:t="shadow"}=e,n=H(e,["background"]);return u.createElement(ze,te(I({},n),{baseClassName:L("vkuiImageBaseBadge",G1[t])}))};function km(e=!1){const[t,n]=u.useState(e);return lt(()=>{n(!0)},[]),t}function Z1(e=!0){const{hasPointer:t}=u.useContext(ca);return!km(!(e||t===void 0))||t!==void 0?t:Qh}function Em(){const{appearance:e}=ao();return e!=null?e:om}const q1=e=>{var{className:t,theme:n,visibility:r,children:o,onClick:i}=e,l=H(e,["className","theme","visibility","children","onClick"]);const a=Em(),s=Z1(),c=n!=null?n:a,d=r!=null?r:s?"on-hover":"always",h=(i!=null?i:d==="on-hover")?de:void 0;return u.createElement(yr,te(I({},l),{className:L("vkuiImageBaseOverlay",d==="always"&&"vkuiImageBaseOverlay--visible",c==="light"&&"vkuiImageBaseOverlay--theme-light",c==="dark"&&"vkuiImageBaseOverlay--theme-dark",t),hasHover:d==="on-hover",hoverMode:d==="on-hover"?"vkuiImageBaseOverlay--visible":void 0,focusVisibleMode:L(mm.inside,"vkuiImageBaseOverlay--visible"),hasActive:!1,onClick:h}),o)},J1=24,uo=e=>{var{alt:t,crossOrigin:n,decoding:r,loading:o,referrerPolicy:i,sizes:l,src:a,srcSet:s,useMap:c,getRef:d,size:h,width:p,height:v,widthSize:w,heightSize:k,style:C,noBorder:f=!1,fallbackIcon:m,children:g,onLoad:_,onError:T,withTransparentBackground:y}=e,N=H(e,["alt","crossOrigin","decoding","loading","referrerPolicy","sizes","src","srcSet","useMap","getRef","size","width","height","widthSize","heightSize","style","noBorder","fallbackIcon","children","onLoad","onError","withTransparentBackground"]);const P=h!=null?h:X1([w,k],J1),O=w!=null?w:P,D=k!=null?k:P,[j,J]=u.useState(!1),[oe,W]=u.useState(!1),Y=a||s,z=(oe||!Y)&&u.isValidElement(m)?m:null,R=B=>{j||(J(!0),W(!1),_==null||_(B))},F=B=>{J(!1),W(!0),T==null||T(B)},U=Ci(d),Z=u.useRef(!1);return u.useEffect(function(){if(!Z.current&&(Z.current=!0,U.current&&U.current.complete&&!j)){const se=new Event("load");U.current.dispatchEvent(se)}},[U,j]),u.createElement(hc.Provider,{value:{size:P}},u.createElement(ym,I({style:I({width:O,height:D},C),baseClassName:L("vkuiImageBase",j&&"vkuiImageBase--loaded",y&&"vkuiImageBase--transparent-background")},N),Y&&u.createElement("img",{ref:U,alt:t,className:"vkuiImageBase__img",crossOrigin:n,decoding:r,loading:o,referrerPolicy:i,sizes:l,src:a,srcSet:s,useMap:c,width:p,height:v,onLoad:R,onError:F}),z&&u.createElement("div",{className:"vkuiImageBase__fallback"},z),g,!f&&u.createElement("div",{"aria-hidden":!0,className:"vkuiImageBase__border"})))};uo.Badge=Q1;uo.Overlay=q1;function ew(e){var t=!!document.importNode,n=new DOMParser().parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n}var Sm=function(){function e(t){var n=t.content;$h(this,e),Xr(this,"isMounted",!1),Xr(this,"node",void 0),this.node=ew(n)}return Yh(e,[{key:"id",get:function(){return this.node.id}},{key:"mount",value:function(n){return this.isMounted?this.node:(this.isMounted=!0,n.appendChild(this.node),this.node)}},{key:"unmount",value:function(){this.node&&this.node.parentNode&&(this.node.parentNode.removeChild(this.node),this.isMounted=!1)}}],[{key:"createFromExistingNode",value:function(n){var r=new e({content:""});return r.node=n,r}}]),e}(),Yd="http://www.w3.org/2000/svg",tw=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$h(this,e),Xr(this,"symbols",new Map),Xr(this,"config",{attrs:{xmlns:Yd,"xmlns:xlink":"http://www.w3.org/1999/xlink",style:"position:absolute;width:0;height:0","aria-hidden":"true"}}),Xr(this,"node",null),Object.assign(this.config.attrs,t.attrs)}return Yh(e,[{key:"push",value:function(n){var r=this.symbols,o=r.has(n.id);return r.set(n.id,n),!o}},{key:"add",value:function(n){var r=this.push(n);return this.node&&r&&n.mount(this.node),r}},{key:"attach",value:function(n){var r=this;this.node||(this.node=n,this.symbols.forEach(function(o){o.mount(n)}),n.querySelectorAll("symbol").forEach(function(o){var i=Sm.createFromExistingNode(o);r.add(i)}))}},{key:"mount",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.node?this.node:(this.node=this.render(),r&&n.childNodes[0]?n.insertBefore(this.node,n.firstChild):n.appendChild(this.node),this.node)}},{key:"render",value:function(){var n=document.createElementNS(Yd,"svg");return Object.entries(this.config.attrs).forEach(function(r){return n.setAttribute(r[0],r[1])}),this.symbols.forEach(function(r){return n.appendChild(r.node)}),n}},{key:"unmount",value:function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node)}}]),e}(),Cm=!!(typeof window<"u"&&window.document&&window.document.createElement),Hr;if(Cm){var Xd="__SVG_SPRITE_NODE__";Hr=new tw({attrs:{id:Xd}});var Za=function(){var e=document.getElementById(Xd);e?Hr.attach(e):Hr.mount(document.body),document.removeEventListener("DOMContentLoaded",Za)};document.querySelector("body")?Za():document.addEventListener("DOMContentLoaded",Za)}else Hr=null;function nw(e){Hr&&Hr.add(e)}var rw=Cm?u.useLayoutEffect:u.useEffect;function ow(e){var t={};return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"warn";t[n]||(console[r]("[@vkontakte/icons][".concat(e,"] ").concat(n)),t[n]=!0)}}var iw=function(e){var t=e.width,n=t===void 0?0:t,r=e.height,o=r===void 0?0:r,i=e.viewBox,l=e.id,a=e.className,s=a===void 0?"":a,c=e.fill,d=e.getRootRef,h=e.style,p=h===void 0?{}:h,v=e.title,w=e.children,k=H(e,["width","height","viewBox","id","className","fill","getRootRef","style","title","children"]),C=Math.max(n,o),f=I({width:n,height:o},p);return nl.createElement("svg",te(I({"aria-hidden":"true",display:"block"},k),{className:["vkuiIcon","vkuiIcon--".concat(C),"vkuiIcon--w-".concat(n),"vkuiIcon--h-".concat(o),"vkuiIcon--".concat(l),s].join(" ").trim(),viewBox:i,width:n,height:o,style:f,ref:d}),v&&nl.createElement("title",null,v),nl.createElement("use",{xlinkHref:"#".concat(l),style:{fill:"currentColor",color:c}},w))};function Ie(e,t,n,r,o,i,l,a){var s=function(){c||(nw(new Sm({content:r})),c=!0)},c=!1,d=ow(e),h=function(p){if(rw(s,[]),l){var v=a?". Замените на ".concat(a):"";d("Иконка устарела"+v)}return nl.createElement(iw,te(I({},p),{viewBox:n,id:t,width:p.width!==void 0&&!isNaN(p.width)?+p.width:o,height:p.height!==void 0&&!isNaN(p.height)?+p.height:i}))};return h.mountIcon=s,h.displayName=e,h}var lw=Ie("Icon12Circle","circle_12","0 0 12 12",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 12" id="circle_12"><path fill="currentColor" d="M10 6a4 4 0 1 1-8 0 4 4 0 0 1 8 0" /></symbol>',12,12,!1,void 0),aw=Ie("Icon12OnlineMobile","online_mobile_12","0 0 8 12",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 8 12" id="online_mobile_12"><path fill="currentColor" d="M5.99 0C7.1 0 8 .9 8 2.01v7.98C8 11.1 7.1 12 5.99 12H2.01C.9 12 0 11.1 0 9.99V2.01C0 .9.9 0 2.01 0zm.008 3H2.003a.5.5 0 0 0-.503.502v4.996c0 .277.225.502.503.502h3.995a.5.5 0 0 0 .502-.502V3.503A.5.5 0 0 0 5.997 3" /></symbol>',8,12,!1,void 0),sw=Ie("Icon16Chevron","chevron_16","0 0 12 16",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 16" id="chevron_16"><path fill="currentColor" d="M7.227 8 3.864 4.636a.9.9 0 0 1 1.272-1.272l4 4a.9.9 0 0 1 0 1.272l-4 4a.9.9 0 0 1-1.272-1.272z" /></symbol>',12,16,!1,void 0),uw=Ie("Icon16Spinner","spinner_16","0 0 16 16",'<symbol xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16" id="spinner_16"><path fill-rule="evenodd" d="M8 3.25a4.75 4.75 0 0 0-4.149 7.065.75.75 0 1 1-1.31.732A6.25 6.25 0 1 1 8 14.25a.75.75 0 0 1 .001-1.5 4.75 4.75 0 1 0 0-9.5Z" clip-rule="evenodd" /></symbol>',16,16,!1,void 0),cw=Ie("Icon20CheckBoxOff","check_box_off_20","0 0 20 20",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20" id="check_box_off_20"><path fill="currentColor" fill-rule="evenodd" d="M4.046 2.534C4.788 2.138 5.517 2 7.128 2h5.744c1.61 0 2.34.138 3.082.534.65.348 1.164.862 1.512 1.512.396.742.534 1.471.534 3.082v5.744c0 1.61-.138 2.34-.534 3.082a3.64 3.64 0 0 1-1.512 1.512c-.742.396-1.472.534-3.082.534H7.128c-1.61 0-2.34-.138-3.082-.534a3.64 3.64 0 0 1-1.512-1.512C2.138 15.212 2 14.482 2 12.872V7.128c0-1.61.138-2.34.534-3.082a3.65 3.65 0 0 1 1.512-1.512m3.082.966c-1.531 0-1.962.136-2.374.357a2.15 2.15 0 0 0-.897.897c-.22.412-.357.843-.357 2.374v5.744c0 1.531.136 1.962.357 2.374q.313.585.897.897c.412.22.843.357 2.374.357h5.744c1.531 0 1.962-.136 2.374-.357q.585-.313.897-.897c.22-.412.357-.843.357-2.374V7.128c0-1.531-.136-1.962-.357-2.374a2.15 2.15 0 0 0-.897-.897c-.412-.22-.843-.357-2.374-.357z" clip-rule="evenodd" /></symbol>',20,20,!1,void 0),dw=Ie("Icon20CheckBoxOn","check_box_on_20","0 0 20 20",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20" id="check_box_on_20"><path fill="currentColor" fill-rule="evenodd" d="M2.436 4.184C2 5.04 2 6.16 2 8.4v3.2c0 2.24 0 3.36.436 4.216a4 4 0 0 0 1.748 1.748C5.04 18 6.16 18 8.4 18h3.2c2.24 0 3.36 0 4.216-.436a4 4 0 0 0 1.748-1.748C18 14.96 18 13.84 18 11.6V8.4c0-2.24 0-3.36-.436-4.216a4 4 0 0 0-1.748-1.748C14.96 2 13.84 2 11.6 2H8.4c-2.24 0-3.36 0-4.216.436a4 4 0 0 0-1.748 1.748m12.2 3.803a.9.9 0 1 0-1.272-1.274l-4.673 4.665-2.055-2.052A.9.9 0 0 0 5.364 10.6l2.691 2.687a.9.9 0 0 0 1.272 0z" clip-rule="evenodd" /></symbol>',20,20,!1,void 0),fw=Ie("Icon24ArrowLeftOutline","arrow_left_outline_24","0 0 24 24",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" id="arrow_left_outline_24"><path fill="currentColor" d="M11.532 4.26a.9.9 0 0 1 .089 1.18l-.08.092L6.05 11.1H20.1a.9.9 0 0 1 .113 1.793l-.113.007H6.05l5.49 5.568a.9.9 0 0 1 .073 1.181l-.081.092a.9.9 0 0 1-1.181.072l-.092-.081-7-7.1a.9.9 0 0 1-.08-1.172l.08-.092 7-7.1a.9.9 0 0 1 1.273-.009" /></symbol>',24,24,!1,void 0),_m=Ie("Icon24Cancel","cancel_24","0 0 24 24",'<symbol xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" id="cancel_24"><path d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z" /></symbol>',24,24,!1,void 0),pw=Ie("Icon24CheckBoxOff","check_box_off_24","0 0 24 24",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" id="check_box_off_24"><path fill="currentColor" d="M16.872 2c1.783 0 2.43.186 3.082.534s1.163.86 1.512 1.512S22 5.345 22 7.128v9.744c0 1.783-.186 2.43-.534 3.082a3.64 3.64 0 0 1-1.512 1.512c-.652.348-1.299.534-3.082.534H7.128c-1.783 0-2.43-.186-3.082-.534s-1.163-.86-1.512-1.512C2.186 19.302 2 18.655 2 16.872V7.128c0-1.783.186-2.43.534-3.082a3.64 3.64 0 0 1 1.512-1.512C4.698 2.186 5.345 2 7.128 2zm.564 2H6.564c-.892 0-1.215.093-1.54.267-.327.174-.583.43-.757.756S4 5.673 4 6.563v10.873c0 .892.093 1.215.267 1.54.174.327.43.583.756.757s.65.267 1.54.267h10.873c.892 0 1.215-.093 1.54-.267.327-.174.583-.43.757-.756s.267-.65.267-1.54V6.563c0-.892-.093-1.215-.267-1.54a1.8 1.8 0 0 0-.756-.757c-.326-.174-.65-.267-1.54-.267" /></symbol>',24,24,!1,void 0),hw=Ie("Icon24CheckBoxOn","check_box_on_24","0 0 24 24",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" id="check_box_on_24"><path fill="currentColor" fill-rule="evenodd" d="M2.436 4.184C2 5.04 2 6.16 2 8.4v7.2c0 2.24 0 3.36.436 4.216a4 4 0 0 0 1.748 1.748C5.04 22 6.16 22 8.4 22h7.2c2.24 0 3.36 0 4.216-.436a4 4 0 0 0 1.748-1.748C22 18.96 22 17.84 22 15.6V8.4c0-2.24 0-3.36-.436-4.216a4 4 0 0 0-1.748-1.748C18.96 2 17.84 2 15.6 2H8.4c-2.24 0-3.36 0-4.216.436a4 4 0 0 0-1.748 1.748m15.771 5.023a1 1 0 0 0-1.414-1.414L10 14.586l-2.793-2.793a1 1 0 0 0-1.414 1.414l3.5 3.5a1 1 0 0 0 1.414 0z" clip-rule="evenodd" /></symbol>',24,24,!1,void 0),mw=Ie("Icon24CheckCircleOff","check_circle_off_24","0 0 24 24",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" id="check_circle_off_24"><path fill="currentColor" d="M12 0c6.629 0 12 5.373 12 12 0 6.629-5.373 12-12 12-6.629 0-12-5.373-12-12C0 5.371 5.373 0 12 0m0 1.5C6.2 1.5 1.5 6.2 1.5 12S6.2 22.5 12 22.5 22.5 17.8 22.5 12 17.8 1.5 12 1.5" /></symbol>',24,24,!1,void 0),vw=Ie("Icon24CheckCircleOn","check_circle_on_24","0 0 24 24",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" id="check_circle_on_24"><path fill="currentColor" fill-rule="evenodd" d="M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12m6.207-14.793a1 1 0 0 0-1.414-1.414L10 14.586l-2.793-2.793a1 1 0 0 0-1.414 1.414l3.5 3.5a1 1 0 0 0 1.414 0z" clip-rule="evenodd" /></symbol>',24,24,!1,void 0),gw=Ie("Icon24ChevronCompactRight","chevron_compact_right_24","0 0 16 24",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 24" id="chevron_compact_right_24"><path fill="currentColor" d="M4.706 7.706a1 1 0 0 1 0-1.412l.088-.088a.997.997 0 0 1 1.414.002l5.084 5.084a1 1 0 0 1 0 1.416l-5.084 5.084a1 1 0 0 1-1.414.002l-.088-.088a.995.995 0 0 1 0-1.412L9 12z" /></symbol>',16,24,!1,void 0),yw=Ie("Icon24ChevronLeftOutline","chevron_left_outline_24","0 0 24 24",'<symbol xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" id="chevron_left_outline_24"><path d="m8.414 12 7.293 7.293a1 1 0 0 1-1.414 1.414l-8-8a1 1 0 0 1 0-1.414l8-8a1 1 0 1 1 1.414 1.414z" /></symbol>',24,24,!1,void 0),ww=Ie("Icon24Reorder","reorder_24","0 0 24 24",'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="reorder_24"><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z" /><path fill="currentColor" fill-rule="nonzero" d="M21 18a1 1 0 0 1-1 1H4a1 1 0 0 1 0-2h16a1 1 0 0 1 1 1m0-4a1 1 0 0 1-1 1H4a1 1 0 0 1 0-2h16a1 1 0 0 1 1 1m0-4a1 1 0 0 1-1 1H4a1 1 0 0 1 0-2h16a1 1 0 0 1 1 1M3 6a1 1 0 0 1 1-1h16a1 1 0 0 1 0 2H4a1 1 0 0 1-1-1" /></g></symbol>',24,24,!1,void 0),kw=Ie("Icon24ReorderIos","reorder_ios_24","0 0 24 24",'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="reorder_ios_24"><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z" opacity=".1" /><path fill="currentColor" fill-rule="nonzero" d="M2.75 7h18.5a.75.75 0 1 1 0 1.5H2.75a.75.75 0 0 1 0-1.5m0 4h18.5a.75.75 0 1 1 0 1.5H2.75a.75.75 0 1 1 0-1.5m0 4h18.5a.75.75 0 1 1 0 1.5H2.75a.75.75 0 1 1 0-1.5" /></g></symbol>',24,24,!1,void 0),Ew=Ie("Icon24Spinner","spinner_24","0 0 24 24",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" id="spinner_24"><path fill="currentColor" fill-rule="evenodd" d="M16.394 5.077A8.2 8.2 0 0 0 4.58 15.49a.9.9 0 0 1-1.628.767A10 10 0 1 1 12 22a.9.9 0 0 1 0-1.8 8.2 8.2 0 0 0 4.394-15.123" clip-rule="evenodd" /></symbol>',24,24,!1,void 0),Sw=Ie("Icon28ArrowLeftOutline","arrow_left_outline_28","0 0 28 28",'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" id="arrow_left_outline_28"><g fill="none" fill-rule="evenodd"><path d="M28 0H0v28h28z" /><path fill="currentColor" fill-rule="nonzero" d="M12.293 6.293a1 1 0 0 1 1.414 1.414L8.414 13H22a1 1 0 0 1 .993.883L23 14a1 1 0 0 1-1 1H8.414l5.293 5.293a1 1 0 0 1 .083 1.32l-.083.094a1 1 0 0 1-1.414 0l-7-7-.073-.082A1 1 0 0 1 5 14l.004.09L5 14.02V14a1 1 0 0 1 .125-.484 1 1 0 0 1 .071-.111 1 1 0 0 1 .097-.112l-.08.09q.037-.047.08-.09Z" /></g></symbol>',28,28,!1,void 0),Cw=Ie("Icon28ChevronBack","chevron_back_28","0 0 20 28",'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 28" id="chevron_back_28"><g fill="none" fill-rule="evenodd"><path d="M0 0h20v28H0z" /><path fill="currentColor" d="M4.56 12.94 13 4.5a1.414 1.414 0 0 1 2 2L7.5 14l7.5 7.5a1.414 1.414 0 0 1-2 2l-8.44-8.44a1.5 1.5 0 0 1 0-2.12" /></g></symbol>',20,28,!1,void 0),_w=Ie("Icon28ChevronLeftOutline","chevron_left_outline_28","0 0 28 28",'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 28 28" id="chevron_left_outline_28"><path fill="currentColor" d="m12.414 14 5.793-5.793a1 1 0 0 0-1.414-1.414l-6.5 6.5a1 1 0 0 0 0 1.414l6.5 6.5a1 1 0 0 0 1.414-1.414z" /></symbol>',28,28,!1,void 0),Pw=Ie("Icon32Spinner","spinner_32","0 0 32 32",'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" id="spinner_32"><path fill="currentColor" d="M16 32a1.5 1.5 0 0 1 0-3c7.18 0 13-5.82 13-13S23.18 3 16 3 3 8.82 3 16c0 1.557.273 3.074.8 4.502A1.5 1.5 0 1 1 .986 21.54 16 16 0 0 1 0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16" /></symbol>',32,32,!1,void 0),xw=Ie("Icon44Spinner","spinner_44","0 0 44 44",'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44" id="spinner_44"><path fill="currentColor" d="M22 44a1.5 1.5 0 0 1 0-3c10.493 0 19-8.507 19-19S32.493 3 22 3 3 11.507 3 22c0 2.208.376 4.363 1.103 6.397a1.5 1.5 0 1 1-2.825 1.01A22 22 0 0 1 0 22C0 9.85 9.85 0 22 0s22 9.85 22 22-9.85 22-22 22" /></symbol>',44,44,!1,void 0);const co=e=>{var{Component:t="span"}=e,n=H(e,["Component"]);return u.createElement(ze,te(I({Component:t},n),{baseClassName:L("vkuiVisuallyHidden",t==="input"&&"vkuiVisuallyHidden--focusable-input")}))},vc=u.memo(e=>{var{size:t="regular",children:n="Загружается...",disableAnimation:r}=e,o=H(e,["size","children","disableAnimation"]);const i={small:uw,regular:Ew,medium:Pw,large:xw}[t],l={small:8,regular:12,medium:16,large:22}[t];return u.createElement(ze,te(I({Component:"span",role:"status"},o),{baseClassName:"vkuiSpinner"}),u.createElement(i,null,!r&&u.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 ".concat(l," ").concat(l),to:"360 ".concat(l," ").concat(l),dur:"0.7s",repeatCount:"indefinite"})),Qe(n)&&u.createElement(co,null,n))});vc.displayName="Spinner";const Nw={s:"vkuiButton--size-s",m:"vkuiButton--size-m",l:"vkuiButton--size-l"},Tw={primary:"vkuiButton--mode-primary",secondary:"vkuiButton--mode-secondary",tertiary:"vkuiButton--mode-tertiary",outline:"vkuiButton--mode-outline",link:"vkuiButton--mode-link"},Rw={accent:"vkuiButton--appearance-accent",positive:"vkuiButton--appearance-positive",negative:"vkuiButton--appearance-negative",neutral:"vkuiButton--appearance-neutral",overlay:"vkuiButton--appearance-overlay","accent-invariable":"vkuiButton--appearance-accent-invariable"},Aw={left:"vkuiButton--align-left",center:"vkuiButton--align-center",right:"vkuiButton--align-right"},Iw={none:"vkuiButton--sizeY-none",regular:"vkuiButton--sizeY-regular"},Lw=e=>{var{size:t="s",mode:n="primary",appearance:r="accent",stretched:o=!1,align:i="center",children:l,before:a,after:s,getRootRef:c,loading:d,onClick:h=de,className:p,disableSpinnerAnimation:v,rounded:w}=e,k=H(e,["size","mode","appearance","stretched","align","children","before","after","getRootRef","loading","onClick","className","disableSpinnerAnimation","rounded"]);const C=!!(a||s),f=!l&&!!s!=!!a,{sizeY:m="none"}=vt(),g=We();return u.createElement(yr,te(I({hoverMode:"vkuiButton--hover",activeMode:"vkuiButton--active",Component:k.href?"a":"button",focusVisibleMode:"outside"},k),{onClick:d?void 0:h,className:L(p,"vkuiButton",Nw[t],Tw[n],Rw[r],Aw[i],m!=="compact"&&Iw[m],g==="ios"&&"vkuiButton--ios",o&&"vkuiButton--stretched",C&&"vkuiButton--with-icon",f&&!o&&"vkuiButton--singleIcon",d&&"vkuiButton--loading",w&&"vkuiButton--rounded"),getRootRef:c}),d&&u.createElement(vc,{size:"small",className:"vkuiButton__spinner",disableAnimation:v}),u.createElement("span",{className:"vkuiButton__in"},Qe(a)&&u.createElement("span",{className:"vkuiButton__before",role:"presentation","data-testid":void 0},a),Qe(l)&&u.createElement("span",{className:"vkuiButton__content","data-testid":void 0},l),Qe(s)&&u.createElement("span",{className:"vkuiButton__after",role:"presentation","data-testid":void 0},s)))},Mw={none:"vkuiIconButton--sizeY-none",compact:"vkuiIconButton--sizeY-compact"},Pm=e=>{var{label:t,children:n,className:r}=e,o=H(e,["label","children","className"]);const i=We(),{sizeY:l="none"}=vt();return u.createElement(yr,te(I({activeEffectDelay:200,activeMode:"background",Component:o.href?"a":"button"},o),{className:L("vkuiIconButton",l!=="regular"&&Mw[l],i==="ios"&&"vkuiIconButton--ios",r)}),t&&u.createElement(co,null,t),n)};function Zi(e,t){return e.nav||e.id}const xm=u.createContext({entering:!1}),Ow=()=>u.useContext(xm),Bw=({children:e,entering:t})=>{const n=Ow(),r=Ei({entering:n.entering||t});return u.createElement(xm.Provider,{value:r},e)},Gd=u.createContext(void 0),Dw=({children:e,isBack:t})=>{const n=u.useContext(Gd),r=t!==void 0?t:n,[o]=u.useState(r);return u.createElement(Gd.Provider,{value:o},e)};function Zn(e){const t=u.useRef();return u.useEffect(()=>{t.current=e}),t.current}const bw=!!(rt&&window.__isVkuiTesting),lu={supported:!1},rn={supported:!1,name:null};rt&&!bw&&((typeof AnimationEvent<"u"||typeof WebKitAnimationEvent<"u")&&(lu.supported=!0),typeof TransitionEvent<"u"?(rn.supported=!0,rn.name="transitionend"):typeof WebKitTransitionEvent<"u"&&(rn.supported=!0,rn.name="webkitTransitionEnd"));const zw=()=>{const e=u.useRef(null),{document:t}=qt(),n=u.useRef(de),r=u.useCallback(()=>{n.current(),n.current=de},[]);return{waitTransitionFinish:u.useCallback((i,l,a)=>{i&&(!(t!=null&&t.hidden)&&rn.supported&&rn.name?(r(),i.addEventListener(rn.name,l),n.current=()=>{rn.name&&i.removeEventListener(rn.name,l)}):(e!=null&&e.current&&clearTimeout(e.current),e.current=setTimeout(l,a)))},[t,r,e])}},Hw=u.createContext(void 0),Fw=u.createContext(void 0),Qd=e=>e.clientX!=null?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,Zd=e=>e.clientY!=null?e.clientY:e.changedTouches&&e.changedTouches[0].clientY,au=()=>rt&&"ontouchstart"in window;function Vw(){return au()?["touchstart","touchmove","touchend","touchcancel"]:["mousedown","mousemove","mouseup","mouseleave"]}const gc=e=>{var{onStart:t,onStartX:n,onStartY:r,onMove:o,onMoveX:i,onMoveY:l,onLeave:a,onEnter:s,onEnd:c,onEndX:d,onEndY:h,onClickCapture:p,usePointerHover:v,slideThreshold:w=5,useCapture:k=!1,Component:C="div",getRootRef:f,noSlideClick:m=!1,stopPropagation:g=!1}=e,_=H(e,["onStart","onStartX","onStartY","onMove","onMoveX","onMoveY","onLeave","onEnter","onEnd","onEndX","onEndY","onClickCapture","usePointerHover","slideThreshold","useCapture","Component","getRootRef","noSlideClick","stopPropagation"]);const{document:T}=qt(),y=u.useMemo(Vw,[]),N=u.useRef(!1),P=u.useRef(null),O=(B,se)=>{g&&B.stopPropagation(),se.forEach(ie=>{var Ee,fe,Be;const Le=Date.now()-((Be=(fe=P.current)===null||fe===void 0||(Ee=fe.startT)===null||Ee===void 0?void 0:Ee.getTime())!==null&&Be!==void 0?Be:0);ie&&ie(te(I({},P.current),{duration:Le,originalEvent:B}))})},D=er(v?"pointerenter":"mouseenter",s),j=er(v?"pointerleave":"mouseleave",a),J=er(y[0],B=>{P.current=Ww(Qd(B),Zd(B)),O(B,[t,n,r]),R(au()?B.target:T)},{capture:k,passive:!1}),oe=Ci(f);lt(()=>{const B=oe.current;B&&(D.add(B),j.add(B),J.add(B))},[C]);function W(B){var se;const{isPressed:ie,isX:Ee,isY:fe,startX:Be=0,startY:Le=0}=(se=P.current)!==null&&se!==void 0?se:{};if(ie){var Kt;const Jt=Qd(B),He=Zd(B),Me=Jt-Be,Mt=He-Le,en=Math.abs(Me),Ye=Math.abs(Mt);if(B.touches&&B.touches.length>1)return Y(B);if(!Ee&&!fe){const Xn=en>=w&&en>Ye,mn=Ye>=w&&Ye>en,vn=Xn&&(!!i||!!o),wr=mn&&(!!l||!!o);P.current&&Object.assign(P.current,{isY:mn,isX:Xn,isSlideX:vn,isSlideY:wr,isSlide:vn||wr})}!((Kt=P.current)===null||Kt===void 0)&&Kt.isSlide&&(Object.assign(P.current,{clientX:Jt,clientY:He,shiftX:Me,shiftY:Mt,shiftXAbs:en,shiftYAbs:Ye}),O(B,[o,P.current.isSlideX&&i,P.current.isSlideY&&l]))}}function Y(B){var se;const{isPressed:ie,isSlide:Ee,isSlideX:fe,isSlideY:Be}=(se=P.current)!==null&&se!==void 0?se:{};ie&&O(B,[c,Be&&h,fe&&d]);const Le=au();Le&&Ee?N.current=!1:N.current=!!Ee,P.current={},Le&&a&&a(B),F()}const ne={capture:k,passive:!1},z=[er(y[1],W,ne),er(y[2],Y,ne),er(y[3],Y,ne)];function R(B){B&&z.forEach(se=>se.add(B))}function F(){z.forEach(B=>B.remove())}const U=B=>{const se=B.target;(se.tagName==="A"||se.tagName==="IMG")&&B.preventDefault()},Z=B=>{if(!N.current)return p&&p(B);m?(B.stopPropagation(),B.preventDefault()):p&&p(B),N.current=!1};return u.createElement(C,te(I({},_),{onDragStart:U,onClickCapture:Z,ref:oe}))};function Ww(e,t){return{startX:e,startY:t,startT:new Date,duration:0,isPressed:!0,isY:!1,isX:!1,isSlideX:!1,isSlideY:!1,isSlide:!1,clientX:0,clientY:0,shiftX:0,shiftY:0,shiftXAbs:0,shiftYAbs:0}}const jw="input, textarea, [data-vkui-swipe-back=false]";function Uw(e){var t;const n=e.originalEvent.target;return!!(!(n==null||(t=n.closest)===null||t===void 0)&&t.call(n,jw))}function Kw(e){return nu(e).some(t=>"scrollLeft"in t?t.scrollLeft>0:!1)}const qd=20,$w=10,Jd=(e,t,n)=>{const r=t<0,o=t>=$w,i=e<=qd,l=e>=n-qd;return{swipedToOpposite:r,swipeBackTriggered:o,viewportStartEdgeTouched:i,viewportEndEdgeTouched:l}};let ef={};const Yw=e=>{var{activePanel:t,history:n,nav:r,onTransition:o,onSwipeBack:i,onSwipeBackStart:l,onSwipeBackCancel:a,children:s,className:c}=e,d=H(e,["activePanel","history","nav","onTransition","onSwipeBack","onSwipeBackStart","onSwipeBackCancel","children","className"]);const h=Zi({nav:r,id:d.id}),p=u.useRef(ef[h]||{}),v=u.useRef(de);u.useEffect(()=>()=>{h&&(ef[h]=p.current)});const w=u.useRef({}),{window:k,document:C}=qt(),f=sm(),m=ao(),g=j1(),_=We(),[T,y]=u.useState(!1),[N,P]=u.useState([t]),[O,D]=u.useState(t),[j,J]=u.useState(void 0),[oe,W]=u.useState(null),[Y,ne]=u.useState(null),z=u.useRef(!1),[R,F]=u.useState(void 0),[U,Z]=u.useState(0),[B,se]=u.useState(0),[ie,Ee]=u.useState(null),[fe,Be]=u.useState(null),[Le,Kt]=u.useState(null),[Jt,He]=u.useState(!1),Me=Zn(t),Mt=Zn(R),en=Zn(Jt),Ye=Zn(Le),Xn=Zn(B),mn=Zn(fe),vn=Zn(o),wr=u.Children.toArray(s).filter(K=>{const X=Zi(K.props);return X!==void 0&&N.includes(X)||X===fe||X===ie}),gn=!m.transitionMotionEnabled||!g.animate||_==="vkcom",yn=!gn&&_==="ios"&&m.isWebView&&!!i,po=K=>K===null?null:w.current[K],wn=u.useCallback((K,X)=>{X&&(p.current[K]=0),W(null),ne(null),P([t]),D(t),y(!1),J(X),v.current=()=>{f==null||f.scrollTo(0,X?p.current[t]:0),o&&o({isBack:X,from:K,to:t})}},[t,o,f]);lt(()=>{v.current(),v.current=de},[v.current]);const Ot=u.useCallback(K=>{(!K||["vkuianimation-ios-next-forward","vkuianimation-ios-prev-back","vkuianimation-view-next-forward","vkuianimation-view-prev-back"].includes(K.animationName))&&oe!==null&&wn(oe,!!j)},[wn,j,oe]),{waitTransitionFinish:kn}=zw(),ho=fc(Ot,_==="ios"?600:300),En=u.useCallback(()=>{i&&i()},[i]),mo=u.useCallback(()=>{a&&a(),Be(null),Ee(null),F(!1),Kt(null),Z(0),se(0)},[a]),Bt=u.useCallback(K=>{if(!K||K!=null&&K.propertyName.includes("transform")&&(K==null?void 0:K.target)===po(ie))switch(Le){case"fail":mo();break;case"success":En()}},[mo,En,ie,Le]),xi=K=>{if(Jt)return;const{swipeBackTriggered:X,viewportStartEdgeTouched:Ce,viewportEndEdgeTouched:gt}=Jd(K.startX,K.shiftX,k.innerWidth);(Ce||gt)&&X&&He(!0)},Ni=K=>{if(z.current||Uw(K))return;const{swipedToOpposite:X,swipeBackTriggered:Ce,viewportStartEdgeTouched:gt}=Jd(K.startX,K.shiftX,k.innerWidth);if(!(T&&Ce)){if(!R&&n&&n.length>1){if(X){z.current=!0;return}if(!Ce)return;if(!gt&&Kw(K.originalEvent.target)){z.current=!0;return}if(l&&l(O)==="prevent"){z.current=!0;return}O!==null&&(ru(C),p.current[O]=f==null?void 0:f.getScroll().y),F(!0),Z(K.startX),Be(O),Ee(n.slice(-2)[0])}R&&(K.shiftX<0?se(0):K.shiftX>k.innerWidth-U?se(k.innerWidth):se(K.shiftX))}},Ti=K=>{if(z.current=!1,R){const Ce=B/K.duration*1e3;var X;B===0?mo():B>=((X=k.innerWidth)!==null&&X!==void 0?X:0)?En():Ce>250||B>=k.innerWidth/2?Kt("success"):Kt("fail")}},va=K=>{if(!rt||!k)return{};const X=K===fe,Ce=K===ie;if(!X&&!Ce||Le)return{};let gt="".concat(B,"px"),Sn="".concat(-50+B*100/k.innerWidth/2,"%");return Ce?{transform:"translate3d(".concat(Sn,", 0, 0)"),WebkitTransform:"translate3d(".concat(Sn,", 0, 0)")}:X?{transform:"translate3d(".concat(gt,", 0, 0)"),WebkitTransform:"translate3d(".concat(gt,", 0, 0)")}:{}},Ri=K=>{if(!rt||!k)return{};if(!(K===ie))return{};const Ce=1-B/k.innerWidth,gt=Le==="success"?0:Le==="fail"?1:null;return{display:"block",opacity:gt===null?Ce:gt}};return u.useEffect(()=>{if(Me&&Me!==t&&!Mt&&!en){const X=u.Children.toArray(s).map(Ce=>Zi(Ce.props)).find(Ce=>Ce===Me||Ce===t)===t;p.current[Me]=f==null?void 0:f.getScroll().y,gn?wn(Me,X):(ru(C),P([Me,t]),W(Me),ne(t),D(null),y(!0),J(X),lu.supported||ho.set())}if(Me&&Me!==t&&Mt){const K=t,X=Me;mn&&(p.current[mn]=0),Be(null),Ee(null),F(!1),Kt(null),Z(0),se(0),D(K),P([K]),J(!0),v.current=()=>{K!==null&&(f==null||f.scrollTo(0,p.current[K])),vn&&vn({isBack:!0,from:X,to:K})}}!Ye&&Le&&kn(po(ie),Bt,_==="ios"?600:300),Me!==t&&Jt&&(He(!1),ne(null),W(null),y(!1),P([t]),D(t))},[t,O,ho,Jt,s,gn,C,wn,_,Me,en,vn,mn,Ye,Mt,f,ie,Le,Bt,kn]),u.useEffect(function(){(Ye==="fail"&&!Le||Mt&&!R&&Xn===0)&&O!==null&&(f==null||f.scrollTo(0,p.current[O]))},[Ye,Le,Mt,R,Xn,O,f]),u.createElement(Hw.Provider,{value:h},u.createElement(gc,te(I({Component:"section"},d),{className:L("vkuiView",_==="ios"&&L("vkuiView--ios","vkuiInternalView--ios"),!gn&&T&&"vkuiView--animated",!gn&&R&&"vkuiView--swiping-back",gn&&"vkuiView--no-motion",c),onMoveX:yn?Ni:_==="ios"?xi:void 0,onEnd:yn?Ti:void 0}),u.createElement("div",{className:"vkuiView__panels"},wr.map(K=>{const X=Zi(K.props),Ce=X===oe||X===fe,gt=T&&X===(j?oe:Y),Sn=Ce||X===ie||X===Y&&j;var vo;return u.createElement("div",{className:L("vkuiView__panel",X===O&&"vkuiView__panel--active",X===oe&&"vkuiView__panel--prev",X===Y&&"vkuiView__panel--next",X===fe&&"vkuiView__panel--swipe-back-prev",X===ie&&"vkuiView__panel--swipe-back-next",Le==="success"&&"vkuiView__panel--swipe-back-success",Le==="fail"&&"vkuiView__panel--swipe-back-failed"),onAnimationEnd:gt?Ot:void 0,ref:Ai=>X!==void 0&&(w.current[X]=Ai),style:va(X),key:X},_==="ios"&&u.createElement("div",{className:"vkuiView__panel-overlay",style:Ri(X)}),u.createElement("div",{className:"vkuiView__panel-in",style:{marginTop:Sn?-((vo=p.current[X])!==null&&vo!==void 0?vo:0):void 0}},u.createElement(Dw,{isBack:R||j},u.createElement(Bw,{entering:X===Y||X===ie},K))))}))))},Xw={none:"vkuiPanel--sizeX-none",compact:"vkuiPanel--sizeX-compact",regular:"vkuiPanel--sizeX-regular"},Nm=e=>{var{centered:t=!1,children:n,nav:r}=e,o=H(e,["centered","children","nav"]);const{sizeX:i="none"}=vt(),{layout:l}=u.useContext(Si);return u.createElement(Fw.Provider,{value:o.id||r},u.createElement(ze,te(I({},o),{baseClassName:L("vkuiPanel",Xw[i],t&&"vkuiInternalPanel--centered",l==="card"&&"vkuiPanel--layout-card")}),u.createElement(gc,{Component:fa,className:L("vkuiPanel__in","vkuiInternalPanel__in")},u.createElement("div",{className:"vkuiPanel__in-before"}),t?u.createElement("div",{className:"vkuiPanel__centered"},n):n,u.createElement("div",{className:"vkuiPanel__in-after"}))))},qa={ios:"vkuiPanelHeaderButton--ios",android:"vkuiPanelHeaderButton--android",vkcom:"vkuiPanelHeaderButton--vkcom"},tf=({primary:e,children:t})=>{const n=We();return n==="ios"?u.createElement(zr,{Component:"span",level:"3",weight:e?"1":"3"},t):u.createElement(cm,{weight:n==="vkcom"?void 0:"2"},t)},Gw=e=>{var{children:t,primary:n=!1,label:r,className:o}=e,i=H(e,["children","primary","label","className"]);const l=eu(t),a=eu(r),s=We();let c,d;switch(s){case"ios":c="background",d="opacity";break;case"vkcom":c="vkuiPanelHeaderButton--hover",d="vkuiPanelHeaderButton--active";break;default:c="background",d="background"}return u.createElement(yr,te(I({Component:i.href?"a":"button"},i),{hoverMode:c,activeEffectDelay:200,activeMode:d,className:L("vkuiInternalPanelHeaderButton","vkuiPanelHeaderButton",qa.hasOwnProperty(s)?qa[s]:qa.android,l&&"vkuiPanelHeaderButton--primitive",!l&&!a&&"vkuiPanelHeaderButton--notPrimitive",o)}),l?u.createElement(tf,{primary:n},t):t,a?u.createElement(tf,{primary:n,className:"vkuiPanelHeaderButton__label"},r):r)},Qw={mq:{className:"vkui-sizeX--compact-mq"},compact:{className:"vkui-sizeX--compact-forced"}},Zw={mq:{className:"vkui-sizeX--regular-mq"},regular:{className:"vkui-sizeX--regular-forced"}},qw={mq:{className:"vkui-sizeY--compact-mq"},compact:{className:"vkui-sizeY--compact-forced"}},Jw={mq:{className:"vkui-sizeY--regular-mq"},regular:{className:"vkui-sizeY--regular-forced"}},ek={tabletMinus:{mq:{className:"vkui-viewWidth--tabletMinus-mq"},forced:{className:"vkui-viewWidth--tabletMinus-forced"}},tabletPlus:{mq:{className:"vkui-viewWidth--tabletPlus-mq"},forced:{className:"vkui-viewWidth--tabletPlus-forced"}}},tk={mobile:{mq:{className:"vkui-deviceType--mobile-mq"},forced:{className:"vkui-deviceType--mobile-forced"}},desktop:{mq:{className:"vkui-deviceType--desktop-mq"},forced:{className:"vkui-deviceType--desktop-forced"}}},nf=(e,t,n)=>({compact:e===void 0?t.mq:e==="compact"?t[e]:!1,regular:e===void 0?n.mq:e==="regular"?n[e]:!1}),nk=(e,t)=>({tabletMinus:e===void 0?t.tabletMinus.mq:e<be.TABLET?t.tabletMinus.forced:!1,tabletPlus:e===void 0?t.tabletPlus.mq:e>=be.TABLET?t.tabletPlus.forced:!1}),rk=(e,t,n,r,o)=>{const i=p1(e,t,n,r);return i===null?{mobile:o.mobile.mq,desktop:o.desktop.mq}:i?{mobile:!1,desktop:o.desktop.forced}:{mobile:o.mobile.forced,desktop:!1}},Tm=()=>{const{sizeX:e,sizeY:t,viewWidth:n,viewHeight:r,hasPointer:o}=u.useContext(ca),i=We();return u.useMemo(()=>{const l=nf(e,Qw,Zw),a=nf(t,qw,Jw),s=nk(n,ek),c=rk(n,r,o,i,tk);return{sizeX:l,sizeY:a,viewWidth:s,deviceType:c}},[e,t,n,r,o,i])},Rm=u.createContext({updateModalHeight:()=>{},registerModal:()=>{},isInsideModal:!1}),su=e=>{var{wide:t}=e,n=H(e,["wide"]);return u.createElement(ze,te(I({},n),{baseClassName:L("vkuiSeparator",!t&&"vkuiSeparator--padded")}),u.createElement("hr",{className:"vkuiSeparator__in"}))},Am=e=>{var{size:t=8,style:n}=e,r=H(e,["size","style"]);const o=I({height:t,padding:"".concat(t/2,"px 0")},n);return u.createElement(ze,te(I({},r),{baseClassName:"vkuiSpacing",style:o}))},Ja={ios:"vkuiPanelHeader--ios",android:"vkuiPanelHeader--android",vkcom:L("vkuiPanelHeader--vkcom","vkuiInternalPanelHeader--vkcom")},ok={none:"vkuiPanelHeader--sizeX-none",regular:"vkuiPanelHeader--sizeX-regular"},ik={none:"vkuiPanelHeader--sizeY-none",compact:"vkuiPanelHeader--sizeY-compact"},rf=({before:e,after:t,children:n,typographyProps:r={}})=>{const{Component:o="span"}=r,i=H(r,["Component"]),{hasCustomPanelHeaderAfter:l,customPanelHeaderAfterMinWidth:a}=ao(),{isInsideModal:s}=u.useContext(Rm),c=We(),d=!l||s?{children:t}:{style:{minWidth:a}},h=c==="vkcom"?u.createElement(cm,I({weight:"2",Component:o},i),n):u.createElement(o,I({className:"vkuiPanelHeader__content-in"},i),n);return u.createElement(fa,{fixed:!0,className:"vkuiPanelHeader__in"},u.createElement("div",{className:L("vkuiPanelHeader__before","vkuiInternalPanelHeader__before")},e),u.createElement("div",{className:"vkuiPanelHeader__content"},h),u.createElement("div",I({className:L("vkuiPanelHeader__after","vkuiInternalPanelHeader__after")},d)))},Im=e=>{var{before:t,children:n,after:r,float:o=!1,transparent:i=!1,delimiter:l="auto",shadow:a,getRef:s,getRootRef:c,fixed:d,typographyProps:h}=e,p=H(e,["before","children","after","float","transparent","delimiter","shadow","getRef","getRootRef","fixed","typographyProps"]);const v=We(),{sizeX:w="none",sizeY:k="none"}=vt(),{sizeX:C}=Tm(),f=v==="vkcom",m=d!==void 0?d:!f,g=l==="auto"||l==="separator",_=!o&&g,T=!o&&(l==="auto"||l==="spacing");return u.createElement(ze,te(I({},p),{baseClassName:L("vkuiPanelHeader","vkuiInternalPanelHeader",Ja.hasOwnProperty(v)?Ja[v]:Ja.android,i&&"vkuiPanelHeader--trnsp",a&&"vkuiPanelHeader--shadow",!o&&L("vkuiPanelHeader--static","vkuiInternalPanelHeader--static"),_&&L("vkuiPanelHeader--sep","vkuiInternalPanelHeader--sep"),!t&&L("vkuiPanelHeader--no-before","vkuiInternalPanelHeader--no-before"),!r&&"vkuiPanelHeader--no-after",m&&"vkuiPanelHeader--fixed",w!=="compact"&&ok[w],k!=="regular"&&ik[k]),getRootRef:m?c:s}),m?u.createElement(K1,{className:L("vkuiPanelHeader__fixed","vkuiInternalPanelHeader__fixed"),vertical:"top",getRootRef:s},u.createElement(rf,{before:t,after:r,typographyProps:h},n)):u.createElement(rf,{before:t,after:r,typographyProps:h},n),!f&&u.createElement(u.Fragment,null,_&&C.compact&&u.createElement(su,{className:C.compact.className}),T&&C.regular&&u.createElement(Am,{className:C.regular.className,size:16})),g&&f&&u.createElement(su,{className:"vkuiPanelHeader__separator",wide:!0}))},lk=(e,t,n)=>{const r=t||iu();return r&&jh.createPortal(e,r,n)};function ak(e){var{children:t}=e,n=H(e,["children"]);const r=ao(),o=Ei(I({},r,n));return u.createElement(da.Provider,{value:o},t)}const sk=({value:e,children:t})=>u.createElement(ak,{appearance:e},u.createElement(lm,null,t)),uk=({children:e,usePortal:t})=>{const{portalRoot:n,mode:r,disablePortal:o}=u.useContext(Si),i=Em();if(!km())return null;const a=dk(t,n.current);return!a||ck(t,r,!!o)?u.createElement(u.Fragment,null,e):lk(u.createElement(sk,{value:i},e),a)};function ck(e,t,n){return e!==void 0?typeof e!="boolean"?!1:n||e!==!0:n||t==="full"}function dk(e,t){return e===!0||!e?t||null:um(e)?e.current:e}const fk=e=>{var{className:t}=e,n=H(e,["className"]);return u.createElement("div",I({className:L("vkuiPopoutRoot__popout",t)},n))},pk=e=>{var{className:t}=e,n=H(e,["className"]);return u.createElement("div",I({className:L("vkuiPopoutRoot__modal",t)},n))},hk=e=>{var{popout:t,modal:n,children:r}=e,o=H(e,["popout","modal","children"]);const{document:i}=qt();return u.useEffect(()=>{t&&ru(i)},[i,t]),u.createElement(ze,te(I({},o),{baseClassName:"vkuiPopoutRoot"}),r,u.createElement(uk,null,!!t&&u.createElement(fk,null,t),!!n&&u.createElement(pk,null,n)))},mk=e=>{var{popout:t,modal:n,header:r,children:o,getRootRef:i,getRef:l,className:a}=e,s=H(e,["popout","modal","header","children","getRootRef","getRef","className"]);const c=We();return u.createElement(hk,{className:L("vkuiSplitLayout",c==="ios"&&"vkuiSplitLayout--ios"),popout:t,modal:n,getRootRef:i},r,u.createElement("div",te(I({},s),{ref:l,className:L("vkuiSplitLayout__inner",!!r&&"vkuiSplitLayout__inner--header",a)}),o))},_r={window:void 0,mediaQueries:null},vk=()=>{const{window:e}=qt();return u.useMemo(function(){if(_r.window===e&&_r.mediaQueries!==null)return _r.mediaQueries;const n=e?e.matchMedia.bind(e):by;return _r.window=e,_r.mediaQueries={desktopPlus:n(kt.MEDIA_QUERIES.DESKTOP_PLUS),smallTabletPlus:n(kt.MEDIA_QUERIES.SMALL_TABLET_PLUS),tablet:n(kt.MEDIA_QUERIES.TABLET),smallTablet:n(kt.MEDIA_QUERIES.SMALL_TABLET),mobile:n(kt.MEDIA_QUERIES.MOBILE),mediumHeight:n(kt.MEDIA_QUERIES.MEDIUM_HEIGHT),mobileLandscapeHeight:n(kt.MEDIA_QUERIES.MOBILE_LANDSCAPE_HEIGHT)},_r.mediaQueries},[e])};function Lm(e,t){e.addEventListener?e.addEventListener("change",t):e.addListener(t)}function Mm(e,t){e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}const gk={none:L("vkuiSplitCol--viewWidth-none","vkuiInternalSplitCol--viewWidth-none"),tabletMinus:"vkuiSplitCol--viewWidth-tabletMinus",smallTabletPlus:"vkuiSplitCol--viewWidth-smallTabletPlus",tabletPlus:"vkuiInternalSplitCol--viewWidth-tabletPlus"};function yk(e){const{viewWidth:t}=vt(),[n,r]=u.useState(!!e),o=vk();return u.useEffect(()=>{if(e!==void 0){r(e);return}if(t!==void 0){r(t<be.TABLET);return}const i=()=>r(!o.smallTabletPlus.matches);return i(),Lm(o.smallTabletPlus,i),()=>{Mm(o.smallTabletPlus,i)}},[e,t,o]),n}const wk=e=>{const{children:t,width:n,maxWidth:r,minWidth:o,animate:i,fixed:l,style:a,autoSpaced:s,stretchedOnMobile:c,getRootRef:d}=e,h=H(e,["children","width","maxWidth","minWidth","animate","fixed","style","autoSpaced","stretchedOnMobile","getRootRef"]),p=Ci(d),{viewWidth:v}=vt(),w=yk(i),k=Ei({colRef:p,animate:w});return u.createElement(ze,te(I({},h),{style:te(I({},a),{width:n,maxWidth:r,minWidth:o}),getRootRef:p,baseClassName:L("vkuiSplitCol",h1(gk,v),s&&L("vkuiSplitCol--spaced-auto","vkuiInternalSplitCol--spaced-auto"),l&&"vkuiSplitCol--fixed",c&&"vkuiSplitCol--stretched-on-mobile")}),u.createElement(pc.Provider,{value:k},l?u.createElement("div",{className:"vkuiSplitCol__fixedInner"},t):t))},kk={center:"vkuiPopoutWrapper--alignX-center",left:"vkuiPopoutWrapper--alignX-left",right:"vkuiPopoutWrapper--alignX-right"},Ek={center:"vkuiPopoutWrapper--alignY-center",top:"vkuiPopoutWrapper--alignY-top",bottom:"vkuiPopoutWrapper--alignY-bottom"},Sk=e=>{var{alignY:t="center",alignX:n="center",closing:r=!1,noBackground:o=!1,fixed:i=!0,children:l,onClick:a}=e,s=H(e,["alignY","alignX","closing","noBackground","fixed","children","onClick"]);const c=We(),[d,h]=u.useState(o),p=w=>{(!w||w.animationName==="vkuianimation-full-fade-in")&&h(!0)},v=fc(p,c==="ios"?300:200);return u.useEffect(()=>{!d&&v.set()},[v,d]),u.createElement(ze,te(I({},s),{baseClassName:L("vkuiPopoutWrapper",Ek[t],kk[n],r&&"vkuiPopoutWrapper--closing",d&&"vkuiPopoutWrapper--opened",i&&"vkuiPopoutWrapper--fixed",!o&&"vkuiPopoutWrapper--masked"),onAnimationEnd:d?void 0:p}),u.createElement("div",{className:"vkuiPopoutWrapper__container"},u.createElement("div",{className:"vkuiPopoutWrapper__overlay",onClick:a}),u.createElement("div",{className:"vkuiPopoutWrapper__content"},l)))},Yl=({IconCompact:e,IconRegular:t})=>{const{sizeY:n}=Tm();return u.createElement(u.Fragment,null,n.compact&&u.createElement(e,{className:n.compact.className}),n.regular&&u.createElement(t,{className:n.regular.className}))},Ck=e=>u.createElement("svg",I({className:"vkuiIcon",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40 24c0 8.837-7.163 16-16 16S8 32.837 8 24 15.163 8 24 8s16 7.163 16 16Zm-10.08-4.33a1.125 1.125 0 0 0-1.59-1.59L24 22.409l-4.33-4.33a1.125 1.125 0 0 0-1.59 0l-.101.116a1.125 1.125 0 0 0 .1 1.476L22.41 24l-4.33 4.33a1.125 1.125 0 0 0 1.591 1.59L24 25.591l4.33 4.33c.439.439 1.151.439 1.59 0l.101-.116a1.125 1.125 0 0 0-.1-1.476L25.59 24l4.33-4.33Z",fill:"currentColor"})),_k=e=>u.createElement("svg",I({className:"vkuiIcon",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u.createElement("path",{d:"M9 24L19 34L39 14",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round"})),Pk=e=>{var{style:t,className:n,state:r="loading",size:o="large",onClick:i,children:l="Пожалуйста, подождите..."}=e,a=H(e,["style","className","state","size","onClick","children"]);const s=r==="done"||r==="error",c={loading:()=>null,cancelable:_m,done:_k,error:Ck}[r];return Yy(),u.createElement(Sk,{noBackground:!0,className:L("vkuiScreenSpinner",r==="cancelable"&&"vkuiScreenSpinner--clickable",n),style:t},u.createElement("div",{className:"vkuiScreenSpinner__container",onClick:i},u.createElement(vc,I({className:L("vkuiScreenSpinner__spinner",s&&"vkuiScreenSpinner__spinner--hidden"),size:o},a),l),u.createElement("div",{className:L("vkuiScreenSpinner__icon",r==="done"&&"vkuiScreenSpinner__icon--state-done")},u.createElement(c,null))))},xk=e=>{var{mode:t,size:n}=e,r=H(e,["mode","size"]);const o=n==="large";if(We()==="ios")switch(t){case"primary":return o?u.createElement(zr,I({level:"2",weight:"2"},r)):u.createElement(zr,I({weight:"1",level:"3"},r));case"secondary":return u.createElement(no,I({weight:"1",caps:!0},r));case"tertiary":return u.createElement(zr,I({weight:"1",level:"3"},r))}switch(t){case"primary":return o?u.createElement(zr,I({level:"2",weight:"2"},r)):u.createElement(pi,I({weight:"2"},r));case"secondary":return u.createElement(no,I({weight:"1",caps:!0},r));case"tertiary":return u.createElement(pi,I({weight:"2"},r))}return null},Nk={primary:"vkuiHeader--mode-primary",secondary:"vkuiHeader--mode-secondary",tertiary:"vkuiHeader--mode-tertiary"},of=e=>{var{mode:t="primary",size:n="regular",Component:r="h2",children:o,subtitle:i,subtitleComponent:l="span",indicator:a,aside:s,multiline:c}=e,d=H(e,["mode","size","Component","children","subtitle","subtitleComponent","indicator","aside","multiline"]);return u.createElement(ze,te(I({},d),{baseClassName:L("vkuiHeader",Nk[t],n==="large"&&"vkuiHeader--large",eu(a)&&"vkuiHeader--pi",Qe(i)&&"vkuiHeader--with-subtitle")}),u.createElement("div",{className:"vkuiHeader__main"},u.createElement(xk,{className:"vkuiHeader__content",Component:r,mode:t,size:n},u.createElement("span",{className:L("vkuiHeader__content-in",c&&"vkuiHeader__content--multiline")},o),Qe(a)&&u.createElement(no,{className:"vkuiHeader__indicator",weight:"2"},a)),Qe(i)&&u.createElement(dm,{className:L("vkuiHeader__subtitle",c&&"vkuiHeader__content--multiline"),Component:l},i)),Qe(s)&&u.createElement(r1,{className:"vkuiHeader__aside",Component:"span"},s))},Tk={none:L("vkuiGroup--sizeX-none","vkuiInternalGroup--sizeX-none"),compact:"vkuiGroup--sizeX-compact"},Rk={none:L("vkuiGroup--mode-none","vkuiInternalGroup--mode-none"),plain:L("vkuiGroup--mode-plain","vkuiInternalGroup--mode-plain"),card:L("vkuiGroup--mode-card","vkuiInternalGroup--mode-card")},Ak={s:"vkuiGroup--padding-s",m:"vkuiGroup--padding-m"};function Ik(e,t,n){const{layout:r}=u.useContext(Si);return e||(n?"plain":r||(t!=="none"?t==="regular"?"card":"plain":"none"))}const lf=e=>{var{header:t,description:n,children:r,separator:o="auto",mode:i,padding:l="m",tabIndex:a}=e,s=H(e,["header","description","children","separator","mode","padding","tabIndex"]);const{isInsideModal:c}=u.useContext(Rm),{sizeX:d="none"}=vt(),h=Ik(i,d,c),v=s.role==="tabpanel"&&a===void 0?0:a;return u.createElement(u.Fragment,null,u.createElement(ze,te(I({Component:"section"},s),{tabIndex:v,baseClassName:L("vkuiInternalGroup","vkuiGroup",c&&"vkuiGroup--inside-modal",d!=="regular"&&Tk[d],h&&Rk[h],Ak[l])}),Qe(t)&&u.createElement("div",{className:"vkuiGroup__header"},t),r,Qe(n)&&u.createElement(no,{className:"vkuiGroup__description"},n)),o!=="hide"&&u.createElement(u.Fragment,null,u.createElement(Am,{className:L("vkuiGroup__separator","vkuiGroup__separator--spacing"),size:16}),u.createElement(su,{className:L("vkuiGroup__separator","vkuiGroup__separator--separator",o==="show"&&"vkuiGroup__separator--force")})))},Lk=300,qi=-1,Mk="data-draggable-placeholder",Ok=e=>{let t=[],n=null;const r=(...o)=>{t=o,!n&&(n=requestAnimationFrame(()=>{n=null,e(...t)}))};return r.cancel=()=>{n&&(cancelAnimationFrame(n),n=null)},r},af=10,Pr=50,sf=-30,Bk=(e,t)=>{const n=Math.floor(tu(t).scrollTop),{relative:r,edges:o}=Oy(t),i=r.height,a=My(t)-i,s=n>0,c=n<a,[d,h]=o.y,p=e-d,v=h-e,w=p<=Pr,k=v<=Pr,C={shouldScrolling:s&&w&&p>=sf||c&&k&&v>=sf,y:0};return w?C.y=-1*((Pr-p)/Pr)*af:k&&(C.y=(Pr-v)/Pr*af),C},Dk=e=>{let t=!1;const n=Ok(r);function r(l){const{shouldScrolling:a,y:s}=l();a?(t=!0,e.scrollBy(0,s),n(l)):(t=!1,n.cancel())}return{tryAutoScroll:l=>{n(l)},stop:()=>{t=!1,n.cancel()},get isRunning(){return t}}},bk=(e,t)=>{const n=t.height/2;return{isUnderEl:e<=t.bottom-n,isOverEl:e>=t.top+n}},uf=(e,t)=>{requestAnimationFrame(()=>{e.style.transform="translateY(".concat(t,"px)")})},cf=([{el:e,draggingElRect:{height:t}},n])=>{requestAnimationFrame(()=>{n==="up"?(e.style.setProperty("transition","transform 0.3s ease-in 0s"),e.style.removeProperty("transform")):(e.style.setProperty("transition","transform 0.3s ease-out 0s"),e.style.setProperty("transform","translateY(".concat(t,"px)")))})},zk=({el:e,draggingElRect:t})=>{const{top:n,left:r,width:o,height:i}=t;requestAnimationFrame(()=>{e.style.setProperty("pointer-events","none"),e.style.setProperty("position","fixed"),e.style.setProperty("top","".concat(n,"px")),e.style.setProperty("left","".concat(r,"px")),e.style.setProperty("width","".concat(o,"px")),e.style.setProperty("height","".concat(i,"px")),e.style.setProperty("z-index","var(--vkui_internal--z_index_cell_dragging)"),e.style.setProperty("box-sizing","border-box"),e.style.setProperty("transform","translateY(0)")})},Hk=({el:e})=>{requestAnimationFrame(()=>{e.style.removeProperty("pointer-events"),e.style.removeProperty("position"),e.style.removeProperty("top"),e.style.removeProperty("left"),e.style.removeProperty("width"),e.style.removeProperty("height"),e.style.removeProperty("z-index"),e.style.removeProperty("box-sizing"),e.style.removeProperty("transform")})},Fk=({el:e,draggingElRect:t})=>{if(e.firstElementChild)return;const{width:n,height:r}=t,o=e.cloneNode();o.style.setProperty("display","block"),o.style.setProperty("width","".concat(n,"px")),o.style.setProperty("height","".concat(r,"px")),o.style.setProperty("pointer-events","none"),e.appendChild(o)},df=({el:e})=>{e.firstElementChild&&e.firstElementChild.remove()},Vk=({el:e,shifted:t,draggingElRect:n})=>{const{height:r}=n;requestAnimationFrame(()=>{e.style.setProperty("pointer-events","none"),e.style.setProperty("transition","none 0s ease 0s"),t&&e.style.setProperty("transform","translateY(".concat(r,"px)"))})},Wk=({el:e})=>{requestAnimationFrame(()=>{e.style.removeProperty("pointer-events"),e.style.removeProperty("transition"),e.style.removeProperty("transform")})},jk=({elRef:e,onDragFinish:t})=>{const[n,r]=u.useState(!1),o=u.useRef(0),i=u.useRef(0),l=u.useRef(null),a=u.useRef(0),s=u.useRef(null),c=W=>{const Y=Ly(W);Y&&(l.current=Y,a.current=tu(Y).scrollTop,s.current=Dk(l.current))},d=()=>{var W;a.current=0,(W=s.current)===null||W===void 0||W.stop(),l.current=s.current=null},h=u.useRef(void 0),p=(W,Y)=>{const ne=W-Y;return ne<0?"down":ne>0?"up":h.current},v=u.useRef(qi),w=u.useRef(qi),k=u.useRef(null),C=u.useRef(null),f=u.useRef([]),m=W=>{const Y=ou(W,!0),{children:ne}=W.parentElement||{children:[]};Array.prototype.forEach.call(ne,(z,R)=>{z===W?(v.current=w.current=R,k.current={index:R,el:z,draggingElRect:Y}):z.getAttribute(Mk)!==null?C.current={index:R,el:z,draggingElRect:Y}:f.current.push({index:R,el:z,shifted:v.current!==qi&&v.current<R,draggingElRect:Y})}),C.current&&Fk(C.current),k.current&&zk(k.current),f.current.forEach(Vk)},g=()=>{C.current&&df(C.current),k.current&&Hk(k.current),f.current.forEach(Wk),f.current=[],C.current=k.current=null;const W={from:v.current,to:w.current};return v.current=w.current=qi,W},_=W=>{const Y=[],ne=[];return w.current=v.current,f.current.forEach(z=>{const{isOverEl:R,isUnderEl:F}=bk(W,ou(z.el));v.current<z.index?(R&&(w.current=w.current+1,h.current==="down"&&z.shifted&&(z.shifted=!1,Y.push([z,"up"]))),F&&h.current==="up"&&!z.shifted&&(z.shifted=!0,ne.push([z,"down"]))):v.current>z.index&&(F&&(w.current=w.current-1,h.current==="up"&&!z.shifted&&(z.shifted=!0,Y.push([z,"down"]))),R&&h.current==="down"&&z.shifted&&(z.shifted=!1,ne.push([z,"up"])))}),[Y,ne]},T=(W,Y)=>{W.forEach(cf),Y.forEach(cf)},y=u.useRef(null),N=()=>{y.current&&(clearTimeout(y.current),y.current=null)},P=()=>{s.current&&s.current.tryAutoScroll(()=>l.current?Bk(o.current,l.current):{shouldScrolling:!1,y:0})},O=()=>{N(),y.current=setTimeout(()=>{y.current=null,P()},Lk)},D=W=>{W.originalEvent.stopPropagation(),W.originalEvent.preventDefault()},j=W=>{W.originalEvent.stopPropagation(),W.originalEvent.preventDefault();const Y=e.current;if(Y)if(n)if(h.current=p(i.current,W.shiftY),i.current=W.shiftY,o.current=W.clientY,s.current&&s.current.isRunning)uf(Y,i.current);else{const[ne,z]=_(o.current);uf(Y,i.current),T(ne,z),O()}else r(ne=>ne||(c(Y),m(Y),!0))},J=W=>{if(W.originalEvent.stopPropagation(),W.originalEvent.preventDefault(),N(),d(),o.current=i.current=0,h.current=void 0,n){const Y=g();t&&t(Y),r(!1)}},oe=u.useCallback(()=>{if(!e.current||!l.current)return;const W=tu(l.current).scrollTop;h.current=p(a.current,W);const Y=a.current-W,ne=o.current+Y;a.current=W;const[z,R]=_(ne);T(z,R)},[e]);return lt(function(){const Y=l.current;if(!(!n||!Y))return Y.addEventListener("scroll",oe),()=>{Y&&Y.removeEventListener("scroll",oe)}},[n,oe]),lt(()=>function(){C.current&&df(C.current)},[]),{dragging:n,onDragStart:D,onDragMove:j,onDragEnd:J}},Uk=({onRemove:e,removePlaceholder:t,removePlaceholderString:n,children:r,toggleButtonTestId:o,removeButtonTestId:i})=>{const{window:l}=qt(),a=u.useRef(null),s=u.useRef(!0),[c,d]=u.useState(0);wm(l,"click",()=>{c>0&&d(0)},{capture:!0});const h=()=>{if(c>0){var v;a==null||(v=a.current)===null||v===void 0||v.focus()}else s.current=!0},p=v=>{if(v.stopPropagation(),!a.current)return;const{offsetWidth:w}=a.current;s.current=!1,d(w)};return u.createElement("div",{className:L("vkuiRemovable__content","vkuiInternalRemovable__content"),style:{transform:"translateX(-".concat(c!=null?c:0,"px)")},onTransitionEnd:h},u.createElement(Pm,{hasActive:!1,hasHover:!1,className:L("vkuiRemovable__action","vkuiRemovable__toggle","vkuiInternalRemovable__action"),onClick:p,disabled:c>0,"data-testid":o},u.createElement(co,null,n),u.createElement("i",{className:"vkuiRemovable__toggle-in",role:"presentation"})),typeof r=="function"?r({isRemoving:c>0}):r,u.createElement("span",{className:"vkuiRemovable__offset","aria-hidden":!0}),u.createElement(yr,{Component:"button",hasActive:!1,hasHover:!1,disabled:s.current,getRootRef:a,className:"vkuiRemovable__remove",onClick:e,"data-testid":i},u.createElement("span",{className:"vkuiRemovable__remove-in"},t)))},Kk=e=>{var{children:t,onRemove:n=de,removePlaceholder:r="Удалить",align:o="center",indent:i=!1,toggleButtonTestId:l,removeButtonTestId:a}=e,s=H(e,["children","onRemove","removePlaceholder","align","indent","toggleButtonTestId","removeButtonTestId"]);const c=We(),d=p=>{p.preventDefault(),n(p)},h=Zh(r);return u.createElement(ze,te(I({},s),{baseClassName:L(c==="ios"&&"vkuiRemovable--ios",o==="start"&&"vkuiRemovable--align-start",i&&"vkuiRemovable--indent")}),c!=="ios"&&u.createElement("div",{className:L("vkuiRemovable__content","vkuiInternalRemovable__content")},typeof t=="function"?t({isRemoving:!1}):t,u.createElement(Pm,{activeMode:"opacity",hoverMode:"opacity",className:L("vkuiRemovable__action","vkuiInternalRemovable__action"),onClick:d,label:h,"data-testid":a},u.createElement(_m,{role:"presentation"})),u.createElement("span",{className:"vkuiRemovable__offset","aria-hidden":!0})),c==="ios"&&u.createElement(Uk,{onRemove:d,removePlaceholder:r,removePlaceholderString:h,toggleButtonTestId:l,removeButtonTestId:a},t))},$k={s:sw,m:gw},Yk=e=>{var{size:t="m"}=e,n=H(e,["size"]);const r=$k[t];return u.createElement(r,n)},Xk={none:"vkuiSimpleCell--sizeY-none",compact:"vkuiSimpleCell--sizeY-compact"},es=e=>{var{badgeBeforeTitle:t,badgeAfterTitle:n,badgeBeforeSubtitle:r,badgeAfterSubtitle:o,before:i,indicator:l,children:a,after:s,expandable:c,multiline:d,subhead:h,subtitle:p,extraSubtitle:v,className:w,chevronSize:k="m"}=e,C=H(e,["badgeBeforeTitle","badgeAfterTitle","badgeBeforeSubtitle","badgeAfterSubtitle","before","indicator","children","after","expandable","multiline","subhead","subtitle","extraSubtitle","className","chevronSize"]);const f=We(),m=c==="always"||c==="auto"&&f==="ios",g=Qe(s)||m,{sizeY:_="none"}=vt();return u.createElement(yr,te(I({},C),{className:L("vkuiSimpleCell",_!=="regular"&&Xk[_],d&&"vkuiSimpleCell--mult",w)}),u.createElement("div",{className:"vkuiSimpleCell__before"},i),u.createElement("div",{className:"vkuiSimpleCell__middle"},h&&u.createElement(dm,{Component:"span",className:L("vkuiSimpleCell__text","vkuiSimpleCell__subhead")},h),u.createElement("div",{className:"vkuiSimpleCell__content"},t&&u.createElement("span",{className:"vkuiSimpleCell__badge"},t),u.createElement(pi,{Component:"span",className:"vkuiSimpleCell__children",weight:"3"},a),Qe(n)&&u.createElement("span",{className:"vkuiSimpleCell__badge"},n)),p&&u.createElement("div",{className:"vkuiSimpleCell__content"},r&&u.createElement("span",{className:"vkuiSimpleCell__badge"},r),u.createElement(no,{normalize:!1,className:L("vkuiSimpleCell__text","vkuiSimpleCell__subtitle")},p),o&&u.createElement("span",{className:"vkuiSimpleCell__badge"},o)),v&&u.createElement(no,{className:L("vkuiSimpleCell__text","vkuiSimpleCell__extraSubtitle")},v)),Qe(l)&&u.createElement(pi,{Component:"span",weight:"3",className:"vkuiSimpleCell__indicator"},l),g&&u.createElement("div",{className:L("vkuiSimpleCell__after","vkuiInternalSimpleCell__after")},s,m&&u.createElement(Yk,{size:k,className:"vkuiSimpleCell__chevronIcon"})))},Gk=()=>u.createElement(Yl,{IconCompact:dw,IconRegular:hw}),Qk=()=>u.createElement(Yl,{IconCompact:cw,IconRegular:pw});function Zk(e){const t=We();return e!=="auto"?e:t==="ios"||t==="vkcom"?"circle":"square"}const Om=e=>{var{getRootRef:t,getRef:n,className:r,style:o,type:i="auto"}=e,l=H(e,["getRootRef","getRef","className","style","type"]);const a=Zk(i),s=a==="circle"?mw:Qk,c=a==="circle"?vw:Gk;return u.createElement("span",{className:L("vkuiCellCheckbox",r),style:o,ref:t},u.createElement(co,te(I({},l),{Component:"input",type:"checkbox",className:"vkuiCellCheckbox__input",getRootRef:n})),u.createElement("span",{className:L("vkuiCellCheckbox__icon","vkuiCellCheckbox__icon--off"),"aria-hidden":!0},u.createElement(s,null)),u.createElement("span",{className:L("vkuiCellCheckbox__icon","vkuiCellCheckbox__icon--on"),"aria-hidden":!0},u.createElement(c,null)))},qk=e=>{var{elRef:t,disabled:n,className:r,onDragStateChange:o,onDragFinish:i,children:l}=e,a=H(e,["elRef","disabled","className","onDragStateChange","onDragFinish","children"]);const c=We()==="ios"?kw:ww,{dragging:d,onDragStart:h,onDragMove:p,onDragEnd:v}=jk({elRef:t,onDragFinish:i});return lt(()=>{o&&o(d)},[d,o]),u.createElement(gc,I({className:L("vkuiCellDragger",r),onStart:n?void 0:h,onMoveY:n?void 0:p,onEnd:n?void 0:v},a),l&&u.createElement(co,null,l),u.createElement(c,{className:"vkuiCellDragger__icon"}))},Jk="Перенести ячейку",Bm=e=>{var{mode:t,onRemove:n=de,removePlaceholder:r="Удалить",onDragFinish:o,before:i,after:l,disabled:a,draggable:s,Component:c,onChange:d,name:h,value:p,checked:v,defaultChecked:w,getRootRef:k,draggerLabel:C=Jk,className:f,style:m,toggleButtonTestId:g,removeButtonTestId:_}=e,T=H(e,["mode","onRemove","removePlaceholder","onDragFinish","before","after","disabled","draggable","Component","onChange","name","value","checked","defaultChecked","getRootRef","draggerLabel","className","style","toggleButtonTestId","removeButtonTestId"]);const[y,N]=u.useState(!1),P=t==="selectable",O=t==="removable",D=P?"label":c,j=We(),J=Ci(k),oe=s?u.createElement(qk,{elRef:J,className:"vkuiCell__dragger",disabled:a,onDragStateChange:N,onDragFinish:o},C):null;let W;if(P){const F={name:h,value:p,defaultChecked:w,checked:v,disabled:a,onChange:d};W=u.createElement(Om,I({className:"vkuiCell__checkbox"},F))}const Y=s&&!P||O&&!T.onClick||a,ne=!Y&&!y,z=L("vkuiCell",y&&"vkuiCell--dragging",j==="ios"&&"vkuiCell--ios",O&&"vkuiCell--removable",D==="label"&&"vkuiCell--selectable",a&&"vkuiCell--disabled"),R=te(I({hasActive:ne,hasHover:ne&&!O},T),{className:"vkuiCell__content",Component:D,before:u.createElement(u.Fragment,null,s&&j!=="ios"&&oe,P&&W,i),after:u.createElement(u.Fragment,null,s&&j==="ios"&&oe,l)});return T.onClick&&(R.disabled=Y),O?u.createElement(Kk,{className:L(z,f),style:m,getRootRef:J,removePlaceholder:r,onRemove:F=>n(F,J.current),toggleButtonTestId:g,removeButtonTestId:_},j==="ios"?({isRemoving:F})=>(R.onClick&&(R.disabled=F||!R.disabled),u.createElement(es,R)):u.createElement(es,R)):u.createElement("div",{className:L(z,f),style:m,ref:J},u.createElement(es,R))};Bm.Checkbox=Om;const eE=e=>{var{className:t}=e,n=H(e,["className"]);const{size:r}=u.useContext(hc);return u.createElement(uo.Badge,te(I({},n),{className:L("vkuiAvatarBadge",r<96&&"vkuiAvatarBadge--shifted",t)}))},tE=e=>{var{width:t=12,height:n=12}=e,r=H(e,["width","height"]);return u.createElement(lw,te(I({},r),{width:t>=24?15:12,height:n>=24?15:12}))},nE=e=>{var{width:t=8,height:n=12}=e,r=H(e,["width","height"]);return u.createElement(aw,te(I({},r),{width:t>=24?9:8,height:n>=24?15:12}))},rE=e=>{var{preset:t="online",className:n}=e,r=H(e,["preset","className"]);const{size:o}=u.useContext(hc),i=mc(o),l=t==="online",a=l?"vkuiAvatarBadge--preset-online":"vkuiAvatarBadge--preset-onlineMobile",s=l?tE:nE;return u.createElement(uo.Badge,I({background:"stroke",className:L("vkuiAvatarBadge",a,n)},r),u.createElement(s,{width:i,height:i}))},Dm=30,bm=96,oE=Dm/bm;function zm(e){if(e<=16)return 5;if(e<=24)return 8;if(e<=32)return 10;if(e<=36)return 13;if(e<=44)return 14;if(e<=48)return 17;if(e<56)return 18;if(e<=64)return 21;if(e<=88)return 26;if(e<=bm)return Dm;const t=Math.ceil(e*oE),n=t%2;return t+n}const iE=48,lE={1:"red",2:"orange",3:"yellow",4:"green",5:"l-blue",6:"violet"},aE={red:"vkuiAvatar--gradient-red",orange:"vkuiAvatar--gradient-orange",yellow:"vkuiAvatar--gradient-yellow",green:"vkuiAvatar--gradient-green",blue:"vkuiAvatar--gradient-blue","l-blue":"vkuiAvatar--gradient-l-blue",violet:"vkuiAvatar--gradient-violet"},_i=e=>{var{size:t=iE,className:n,gradientColor:r,initials:o,fallbackIcon:i,children:l}=e,a=H(e,["size","className","gradientColor","initials","fallbackIcon","children"]);const s=typeof r=="number"?lE[r]:r,c=s&&s!=="custom",d=o?u.createElement("div",{className:"vkuiAvatar__initials",style:{fontSize:zm(t)}},o):i;return u.createElement(uo,te(I({},a),{size:t,fallbackIcon:d,className:L("vkuiAvatar",s&&"vkuiAvatar--has-gradient",c&&aE[s],n)}),l)};_i.Badge=eE;_i.BadgeWithPreset=rE;_i.Overlay=uo.Overlay;_i.getInitialsFontSize=zm;const sE=e=>{var{hasVisited:t,children:n,className:r,onClick:o=de}=e,i=H(e,["hasVisited","children","className","onClick"]);return u.createElement(yr,te(I({Component:i.href?"a":"button",onClick:o},i),{className:L("vkuiLink",t&&"vkuiLink--has-visited",r),hasHover:!1,activeMode:"opacity",focusVisibleMode:"outside"}),n)},Hm=e=>{var{stretched:t,noPadding:n=!1}=e,r=H(e,["stretched","noPadding"]);return u.createElement(ze,I({baseClassName:L("vkuiPlaceholder",t&&"vkuiPlaceholder--stretched",!n&&"vkuiPlaceholder--withPadding")},r))},Fm=e=>u.createElement(ze,I({baseClassName:"vkuiPlaceholder__icon"},e)),Vm=e=>{var{className:t}=e,n=H(e,["className"]);return u.createElement(zr,I({level:"2",weight:"2",className:L(t,"vkuiPlaceholder__header")},n))},Wm=e=>{var{className:t}=e,n=H(e,["className"]);return u.createElement(pi,I({weight:"3",className:L(t,"vkuiPlaceholder__text")},n))},jm=e=>u.createElement(ze,I({baseClassName:"vkuiPlaceholder__action"},e)),fo=e=>{var{icon:t,header:n,children:r,action:o,noPadding:i=!1}=e,l=H(e,["icon","header","children","action","noPadding"]);return u.createElement(Hm,I({noPadding:i},l),Qe(t)&&u.createElement(Fm,null,t),Qe(n)&&u.createElement(Vm,null,n),Qe(r)&&u.createElement(Wm,null,r),Qe(o)&&u.createElement(jm,null,o))};fo.Container=Hm;fo.Icon=Fm;fo.Header=Vm;fo.Text=Wm;fo.Actions=jm;const uE=({viewWidth:e,viewHeight:t,sizeX:n,sizeY:r,hasPointer:o,hasHover:i,children:l})=>{const a=u.useMemo(()=>{const s={viewWidth:e,viewHeight:t,sizeX:n,sizeY:r,hasPointer:o,hasHover:i};return n===void 0&&e!==void 0&&(s.sizeX=c1(e)),r===void 0&&(d1(e,o)||f1(t)?s.sizeY="compact":(e!==void 0||t!==void 0)&&(s.sizeY="regular")),s},[e,t,n,r,o,i]);return u.createElement(ca.Provider,{value:a},l)},cE=e=>u.createElement(ze,I({baseClassName:"vkuiDiv"},e)),dE=e=>{switch(e){case"ios":return u.createElement(Cw,null);case"vkcom":return u.createElement(Yl,{IconCompact:yw,IconRegular:_w});default:return u.createElement(Yl,{IconCompact:fw,IconRegular:Sw})}},fE=e=>{var{label:t,className:n,children:r="Назад"}=e,o=H(e,["label","className","children"]);const i=We(),{sizeX:l="none"}=vt(),a=i==="vkcom"||i==="ios";return u.createElement(Gw,te(I({},o),{className:L(l==="compact"&&"vkuiPanelHeaderBack--sizeX-compact",i==="ios"&&"vkuiPanelHeaderBack--ios",i==="vkcom"&&"vkuiPanelHeaderBack--vkcom",a&&!!t&&"vkuiPanelHeaderBack--has-label",n),label:a&&t}),r&&u.createElement(co,null,r),dE(i))},pE=e=>{const{window:t}=qt(),[n,r]=u.useState(e||Qa.LIGHT);return lt(()=>{if(e)return r(e),de;const o=t?t.matchMedia("(prefers-color-scheme: dark)"):void 0;if(!o)return de;const i=l=>{r(l.matches?Qa.DARK:Qa.LIGHT)};return i(o),Lm(o,i),()=>Mm(o,i)},[t,e]),n},hE=e=>{const t=V1(e),n=ao(),{children:r,hasCustomPanelHeaderAfter:o,customPanelHeaderAfterMinWidth:i,isWebView:l,transitionMotionEnabled:a,platform:s,locale:c,appearance:d,tokensClassNames:h}=I({},n,t),p=pE(d),v=Ei({hasCustomPanelHeaderAfter:o,customPanelHeaderAfterMinWidth:i,isWebView:l,transitionMotionEnabled:a,platform:s,locale:c,tokensClassNames:h,appearance:p});return u.createElement(da.Provider,{value:v},u.createElement(lm,null,r))};/**
 * @remix-run/router v1.15.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ae.apply(this,arguments)}var we;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(we||(we={}));const ff="popstate";function mE(e){e===void 0&&(e={});function t(o,i){let{pathname:l="/",search:a="",hash:s=""}=Yn(o.location.hash.substr(1));return!l.startsWith("/")&&!l.startsWith(".")&&(l="/"+l),hi("",{pathname:l,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let l=o.document.querySelector("base"),a="";if(l&&l.getAttribute("href")){let s=o.location.href,c=s.indexOf("#");a=c===-1?s:s.slice(0,c)}return a+"#"+(typeof i=="string"?i:mr(i))}function r(o,i){hr(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return gE(t,n,r,e)}function ve(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function hr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function vE(){return Math.random().toString(36).substr(2,8)}function pf(e,t){return{usr:e.state,key:e.key,idx:t}}function hi(e,t,n,r){return n===void 0&&(n=null),Ae({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yn(t):t,{state:n,key:t&&t.key||r||vE()})}function mr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Yn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function gE(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,a=we.Pop,s=null,c=d();c==null&&(c=0,l.replaceState(Ae({},l.state,{idx:c}),""));function d(){return(l.state||{idx:null}).idx}function h(){a=we.Pop;let C=d(),f=C==null?null:C-c;c=C,s&&s({action:a,location:k.location,delta:f})}function p(C,f){a=we.Push;let m=hi(k.location,C,f);n&&n(m,C),c=d()+1;let g=pf(m,c),_=k.createHref(m);try{l.pushState(g,"",_)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(_)}i&&s&&s({action:a,location:k.location,delta:1})}function v(C,f){a=we.Replace;let m=hi(k.location,C,f);n&&n(m,C),c=d();let g=pf(m,c),_=k.createHref(m);l.replaceState(g,"",_),i&&s&&s({action:a,location:k.location,delta:0})}function w(C){let f=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:mr(C);return m=m.replace(/ $/,"%20"),ve(f,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,f)}let k={get action(){return a},get location(){return e(o,l)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(ff,h),s=C,()=>{o.removeEventListener(ff,h),s=null}},createHref(C){return t(o,C)},createURL:w,encodeLocation(C){let f=w(C);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:p,replace:v,go(C){return l.go(C)}};return k}var Te;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Te||(Te={}));const yE=new Set(["lazy","caseSensitive","path","id","index","children"]);function wE(e){return e.index===!0}function uu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let l=[...n,i],a=typeof o.id=="string"?o.id:l.join("-");if(ve(o.index!==!0||!o.children,"Cannot specify children on an index route"),ve(!r[a],'Found a route id collision on id "'+a+"\".  Route id's must be globally unique within Data Router usages"),wE(o)){let s=Ae({},o,t(o),{id:a});return r[a]=s,s}else{let s=Ae({},o,t(o),{id:a,children:void 0});return r[a]=s,o.children&&(s.children=uu(o.children,t,l,r)),s}})}function Do(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Yn(t):t,o=pa(r.pathname||"/",n);if(o==null)return null;let i=Um(e);EE(i);let l=null;for(let a=0;l==null&&a<i.length;++a){let s=ME(o);l=AE(i[a],s)}return l}function kE(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function Um(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,l,a)=>{let s={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};s.relativePath.startsWith("/")&&(ve(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let c=Xo([r,s.relativePath]),d=n.concat(s);i.children&&i.children.length>0&&(ve(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Um(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:TE(c,i.index),routesMeta:d})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let s of Km(i.path))o(i,l,s)}),t}function Km(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=Km(r.join("/")),a=[];return a.push(...l.map(s=>s===""?i:[i,s].join("/"))),o&&a.push(...l),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function EE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:RE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const SE=/^:[\w-]+$/,CE=3,_E=2,PE=1,xE=10,NE=-2,hf=e=>e==="*";function TE(e,t){let n=e.split("/"),r=n.length;return n.some(hf)&&(r+=NE),t&&(r+=_E),n.filter(o=>!hf(o)).reduce((o,i)=>o+(SE.test(i)?CE:i===""?PE:xE),r)}function RE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function AE(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l<n.length;++l){let a=n[l],s=l===n.length-1,c=o==="/"?t:t.slice(o.length)||"/",d=IE({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},c);if(!d)return null;Object.assign(r,d.params);let h=a.route;i.push({params:r,pathname:Xo([o,d.pathname]),pathnameBase:bE(Xo([o,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(o=Xo([o,d.pathnameBase]))}return i}function IE(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=LE(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],l=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((c,d,h)=>{let{paramName:p,isOptional:v}=d;if(p==="*"){let k=a[h]||"";l=i.slice(0,i.length-k.length).replace(/(.)\/+$/,"$1")}const w=a[h];return v&&!w?c[p]=void 0:c[p]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:l,pattern:e}}function LE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),hr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,s)=>(r.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function ME(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return hr(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function pa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function OE(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Yn(e):e;return{pathname:n?n.startsWith("/")?n:BE(n,t):t,search:zE(r),hash:HE(o)}}function BE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ts(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function $m(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function DE(e,t){let n=$m(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ym(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Yn(e):(o=Ae({},e),ve(!o.pathname||!o.pathname.includes("?"),ts("?","pathname","search",o)),ve(!o.pathname||!o.pathname.includes("#"),ts("#","pathname","hash",o)),ve(!o.search||!o.search.includes("#"),ts("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(l==null)a=n;else{let h=t.length-1;if(!r&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),h-=1;o.pathname=p.join("/")}a=h>=0?t[h]:"/"}let s=OE(o,a),c=l&&l!=="/"&&l.endsWith("/"),d=(i||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||d)&&(s.pathname+="/"),s}const Xo=e=>e.join("/").replace(/\/\/+/g,"/"),bE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),zE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,HE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Xm{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function FE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Gm=["post","put","patch","delete"],VE=new Set(Gm),WE=["get",...Gm],jE=new Set(WE),UE=new Set([301,302,303,307,308]),KE=new Set([307,308]),ns={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$E={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},No={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Qm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,YE=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Zm="remix-router-transitions";function XE(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ve(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let E=e.detectErrorBoundary;o=S=>({hasErrorBoundary:E(S)})}else o=YE;let i={},l=uu(e.routes,o,void 0,i),a,s=e.basename||"/",c=Ae({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),d=null,h=new Set,p=null,v=null,w=null,k=e.hydrationData!=null,C=Do(l,e.history.location,s),f=null;if(C==null){let E=xt(404,{pathname:e.history.location.pathname}),{matches:S,route:x}=Sf(l);C=S,f={[x.id]:E}}let m,g=C.some(E=>E.route.lazy),_=C.some(E=>E.route.loader);if(g)m=!1;else if(!_)m=!0;else if(c.v7_partialHydration){let E=e.hydrationData?e.hydrationData.loaderData:null,S=e.hydrationData?e.hydrationData.errors:null,x=M=>M.route.loader?M.route.loader.hydrate===!0?!1:E&&E[M.route.id]!==void 0||S&&S[M.route.id]!==void 0:!0;if(S){let M=C.findIndex(V=>S[V.route.id]!==void 0);m=C.slice(0,M+1).every(x)}else m=C.every(x)}else m=e.hydrationData!=null;let T,y={historyAction:e.history.action,location:e.history.location,matches:C,initialized:m,navigation:ns,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||f,fetchers:new Map,blockers:new Map},N=we.Pop,P=!1,O,D=!1,j=new Map,J=null,oe=!1,W=!1,Y=[],ne=[],z=new Map,R=0,F=-1,U=new Map,Z=new Set,B=new Map,se=new Map,ie=new Set,Ee=new Map,fe=new Map,Be=!1;function Le(){if(d=e.history.listen(E=>{let{action:S,location:x,delta:M}=E;if(Be){Be=!1;return}hr(fe.size===0||M!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let V=X({currentLocation:y.location,nextLocation:x,historyAction:S});if(V&&M!=null){Be=!0,e.history.go(M*-1),K(V,{state:"blocked",location:x,proceed(){K(V,{state:"proceeding",proceed:void 0,reset:void 0,location:x}),e.history.go(M)},reset(){let ee=new Map(y.blockers);ee.set(V,No),He({blockers:ee})}});return}return Ye(S,x)}),n){iS(t,j);let E=()=>lS(t,j);t.addEventListener("pagehide",E),J=()=>t.removeEventListener("pagehide",E)}return y.initialized||Ye(we.Pop,y.location,{initialHydration:!0}),T}function Kt(){d&&d(),J&&J(),h.clear(),O&&O.abort(),y.fetchers.forEach((E,S)=>En(S)),y.blockers.forEach((E,S)=>Ri(S))}function Jt(E){return h.add(E),()=>h.delete(E)}function He(E,S){S===void 0&&(S={}),y=Ae({},y,E);let x=[],M=[];c.v7_fetcherPersist&&y.fetchers.forEach((V,ee)=>{V.state==="idle"&&(ie.has(ee)?M.push(ee):x.push(ee))}),[...h].forEach(V=>V(y,{deletedFetchers:M,unstable_viewTransitionOpts:S.viewTransitionOpts,unstable_flushSync:S.flushSync===!0})),c.v7_fetcherPersist&&(x.forEach(V=>y.fetchers.delete(V)),M.forEach(V=>En(V)))}function Me(E,S,x){var M,V;let{flushSync:ee}=x===void 0?{}:x,Q=y.actionData!=null&&y.navigation.formMethod!=null&&Ft(y.navigation.formMethod)&&y.navigation.state==="loading"&&((M=E.state)==null?void 0:M._isRedirect)!==!0,G;S.actionData?Object.keys(S.actionData).length>0?G=S.actionData:G=null:Q?G=y.actionData:G=null;let $=S.loaderData?Ef(y.loaderData,S.loaderData,S.matches||[],S.errors):y.loaderData,le=y.blockers;le.size>0&&(le=new Map(le),le.forEach((me,Xe)=>le.set(Xe,No)));let je=P===!0||y.navigation.formMethod!=null&&Ft(y.navigation.formMethod)&&((V=E.state)==null?void 0:V._isRedirect)!==!0;a&&(l=a,a=void 0),oe||N===we.Pop||(N===we.Push?e.history.push(E,E.state):N===we.Replace&&e.history.replace(E,E.state));let q;if(N===we.Pop){let me=j.get(y.location.pathname);me&&me.has(E.pathname)?q={currentLocation:y.location,nextLocation:E}:j.has(E.pathname)&&(q={currentLocation:E,nextLocation:y.location})}else if(D){let me=j.get(y.location.pathname);me?me.add(E.pathname):(me=new Set([E.pathname]),j.set(y.location.pathname,me)),q={currentLocation:y.location,nextLocation:E}}He(Ae({},S,{actionData:G,loaderData:$,historyAction:N,location:E,initialized:!0,navigation:ns,revalidation:"idle",restoreScrollPosition:Ai(E,S.matches||y.matches),preventScrollReset:je,blockers:le}),{viewTransitionOpts:q,flushSync:ee===!0}),N=we.Pop,P=!1,D=!1,oe=!1,W=!1,Y=[],ne=[]}async function Mt(E,S){if(typeof E=="number"){e.history.go(E);return}let x=cu(y.location,y.matches,s,c.v7_prependBasename,E,c.v7_relativeSplatPath,S==null?void 0:S.fromRouteId,S==null?void 0:S.relative),{path:M,submission:V,error:ee}=mf(c.v7_normalizeFormMethod,!1,x,S),Q=y.location,G=hi(y.location,M,S&&S.state);G=Ae({},G,e.history.encodeLocation(G));let $=S&&S.replace!=null?S.replace:void 0,le=we.Push;$===!0?le=we.Replace:$===!1||V!=null&&Ft(V.formMethod)&&V.formAction===y.location.pathname+y.location.search&&(le=we.Replace);let je=S&&"preventScrollReset"in S?S.preventScrollReset===!0:void 0,q=(S&&S.unstable_flushSync)===!0,me=X({currentLocation:Q,nextLocation:G,historyAction:le});if(me){K(me,{state:"blocked",location:G,proceed(){K(me,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),Mt(E,S)},reset(){let Xe=new Map(y.blockers);Xe.set(me,No),He({blockers:Xe})}});return}return await Ye(le,G,{submission:V,pendingError:ee,preventScrollReset:je,replace:S&&S.replace,enableViewTransition:S&&S.unstable_viewTransition,flushSync:q})}function en(){if(wn(),He({revalidation:"loading"}),y.navigation.state!=="submitting"){if(y.navigation.state==="idle"){Ye(y.historyAction,y.location,{startUninterruptedRevalidation:!0});return}Ye(N||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation})}}async function Ye(E,S,x){O&&O.abort(),O=null,N=E,oe=(x&&x.startUninterruptedRevalidation)===!0,vo(y.location,y.matches),P=(x&&x.preventScrollReset)===!0,D=(x&&x.enableViewTransition)===!0;let M=a||l,V=x&&x.overrideNavigation,ee=Do(M,S,s),Q=(x&&x.flushSync)===!0;if(!ee){let Xe=xt(404,{pathname:S.pathname}),{matches:yt,route:Ue}=Sf(M);Ce(),Me(S,{matches:yt,loaderData:{},errors:{[Ue.id]:Xe}},{flushSync:Q});return}if(y.initialized&&!W&&JE(y.location,S)&&!(x&&x.submission&&Ft(x.submission.formMethod))){Me(S,{matches:ee},{flushSync:Q});return}O=new AbortController;let G=Ro(e.history,S,O.signal,x&&x.submission),$,le;if(x&&x.pendingError)le={[Go(ee).route.id]:x.pendingError};else if(x&&x.submission&&Ft(x.submission.formMethod)){let Xe=await Xn(G,S,x.submission,ee,{replace:x.replace,flushSync:Q});if(Xe.shortCircuited)return;$=Xe.pendingActionData,le=Xe.pendingActionError,V=rs(S,x.submission),Q=!1,G=new Request(G.url,{signal:G.signal})}let{shortCircuited:je,loaderData:q,errors:me}=await mn(G,S,ee,V,x&&x.submission,x&&x.fetcherSubmission,x&&x.replace,x&&x.initialHydration===!0,Q,$,le);je||(O=null,Me(S,Ae({matches:ee},$?{actionData:$}:{},{loaderData:q,errors:me})))}async function Xn(E,S,x,M,V){V===void 0&&(V={}),wn();let ee=rS(S,x);He({navigation:ee},{flushSync:V.flushSync===!0});let Q,G=fu(M,S);if(!G.route.action&&!G.route.lazy)Q={type:Te.error,error:xt(405,{method:E.method,pathname:S.pathname,routeId:G.route.id})};else if(Q=await To("action",E,G,M,i,o,s,c.v7_relativeSplatPath),E.signal.aborted)return{shortCircuited:!0};if(ir(Q)){let $;return V&&V.replace!=null?$=V.replace:$=Q.location===y.location.pathname+y.location.search,await yn(y,Q,{submission:x,replace:$}),{shortCircuited:!0}}if(Fr(Q)){let $=Go(M,G.route.id);return(V&&V.replace)!==!0&&(N=we.Push),{pendingActionData:{},pendingActionError:{[$.route.id]:Q.error}}}if(or(Q))throw xt(400,{type:"defer-action"});return{pendingActionData:{[G.route.id]:Q.data}}}async function mn(E,S,x,M,V,ee,Q,G,$,le,je){let q=M||rs(S,V),me=V||ee||Pf(q),Xe=a||l,[yt,Ue]=vf(e.history,y,x,me,S,c.v7_partialHydration&&G===!0,W,Y,ne,ie,B,Z,Xe,s,le,je);if(Ce(ce=>!(x&&x.some(he=>he.route.id===ce))||yt&&yt.some(he=>he.route.id===ce)),F=++R,yt.length===0&&Ue.length===0){let ce=Ni();return Me(S,Ae({matches:x,loaderData:{},errors:je||null},le?{actionData:le}:{},ce?{fetchers:new Map(y.fetchers)}:{}),{flushSync:$}),{shortCircuited:!0}}if(!oe&&(!c.v7_partialHydration||!G)){Ue.forEach(he=>{let ut=y.fetchers.get(he.key),Li=Ao(void 0,ut?ut.data:void 0);y.fetchers.set(he.key,Li)});let ce=le||y.actionData;He(Ae({navigation:q},ce?Object.keys(ce).length===0?{actionData:null}:{actionData:ce}:{},Ue.length>0?{fetchers:new Map(y.fetchers)}:{}),{flushSync:$})}Ue.forEach(ce=>{z.has(ce.key)&&Bt(ce.key),ce.controller&&z.set(ce.key,ce.controller)});let kr=()=>Ue.forEach(ce=>Bt(ce.key));O&&O.signal.addEventListener("abort",kr);let{results:ga,loaderResults:Er,fetcherResults:Cn}=await po(y.matches,x,yt,Ue,E);if(E.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener("abort",kr),Ue.forEach(ce=>z.delete(ce.key));let Gn=Cf(ga);if(Gn){if(Gn.idx>=yt.length){let ce=Ue[Gn.idx-yt.length].key;Z.add(ce)}return await yn(y,Gn.result,{replace:Q}),{shortCircuited:!0}}let{loaderData:ya,errors:go}=kf(y,x,yt,Er,je,Ue,Cn,Ee);Ee.forEach((ce,he)=>{ce.subscribe(ut=>{(ut||ce.done)&&Ee.delete(he)})}),c.v7_partialHydration&&G&&y.errors&&Object.entries(y.errors).filter(ce=>{let[he]=ce;return!yt.some(ut=>ut.route.id===he)}).forEach(ce=>{let[he,ut]=ce;go=Object.assign(go||{},{[he]:ut})});let wa=Ni(),Sr=Ti(F),Ii=wa||Sr||Ue.length>0;return Ae({loaderData:ya,errors:go},Ii?{fetchers:new Map(y.fetchers)}:{})}function vn(E,S,x,M){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");z.has(E)&&Bt(E);let V=(M&&M.unstable_flushSync)===!0,ee=a||l,Q=cu(y.location,y.matches,s,c.v7_prependBasename,x,c.v7_relativeSplatPath,S,M==null?void 0:M.relative),G=Do(ee,Q,s);if(!G){kn(E,S,xt(404,{pathname:Q}),{flushSync:V});return}let{path:$,submission:le,error:je}=mf(c.v7_normalizeFormMethod,!0,Q,M);if(je){kn(E,S,je,{flushSync:V});return}let q=fu(G,$);if(P=(M&&M.preventScrollReset)===!0,le&&Ft(le.formMethod)){wr(E,S,$,q,G,V,le);return}B.set(E,{routeId:S,path:$}),gn(E,S,$,q,G,V,le)}async function wr(E,S,x,M,V,ee,Q){if(wn(),B.delete(E),!M.route.action&&!M.route.lazy){let he=xt(405,{method:Q.formMethod,pathname:x,routeId:S});kn(E,S,he,{flushSync:ee});return}let G=y.fetchers.get(E);Ot(E,oS(Q,G),{flushSync:ee});let $=new AbortController,le=Ro(e.history,x,$.signal,Q);z.set(E,$);let je=R,q=await To("action",le,M,V,i,o,s,c.v7_relativeSplatPath);if(le.signal.aborted){z.get(E)===$&&z.delete(E);return}if(c.v7_fetcherPersist&&ie.has(E)){if(ir(q)||Fr(q)){Ot(E,Pn(void 0));return}}else{if(ir(q))if(z.delete(E),F>je){Ot(E,Pn(void 0));return}else return Z.add(E),Ot(E,Ao(Q)),yn(y,q,{fetcherSubmission:Q});if(Fr(q)){kn(E,S,q.error);return}}if(or(q))throw xt(400,{type:"defer-action"});let me=y.navigation.location||y.location,Xe=Ro(e.history,me,$.signal),yt=a||l,Ue=y.navigation.state!=="idle"?Do(yt,y.navigation.location,s):y.matches;ve(Ue,"Didn't find any matches after fetcher action");let kr=++R;U.set(E,kr);let ga=Ao(Q,q.data);y.fetchers.set(E,ga);let[Er,Cn]=vf(e.history,y,Ue,Q,me,!1,W,Y,ne,ie,B,Z,yt,s,{[M.route.id]:q.data},void 0);Cn.filter(he=>he.key!==E).forEach(he=>{let ut=he.key,Li=y.fetchers.get(ut),mv=Ao(void 0,Li?Li.data:void 0);y.fetchers.set(ut,mv),z.has(ut)&&Bt(ut),he.controller&&z.set(ut,he.controller)}),He({fetchers:new Map(y.fetchers)});let Gn=()=>Cn.forEach(he=>Bt(he.key));$.signal.addEventListener("abort",Gn);let{results:ya,loaderResults:go,fetcherResults:wa}=await po(y.matches,Ue,Er,Cn,Xe);if($.signal.aborted)return;$.signal.removeEventListener("abort",Gn),U.delete(E),z.delete(E),Cn.forEach(he=>z.delete(he.key));let Sr=Cf(ya);if(Sr){if(Sr.idx>=Er.length){let he=Cn[Sr.idx-Er.length].key;Z.add(he)}return yn(y,Sr.result)}let{loaderData:Ii,errors:ce}=kf(y,y.matches,Er,go,void 0,Cn,wa,Ee);if(y.fetchers.has(E)){let he=Pn(q.data);y.fetchers.set(E,he)}Ti(kr),y.navigation.state==="loading"&&kr>F?(ve(N,"Expected pending action"),O&&O.abort(),Me(y.navigation.location,{matches:Ue,loaderData:Ii,errors:ce,fetchers:new Map(y.fetchers)})):(He({errors:ce,loaderData:Ef(y.loaderData,Ii,Ue,ce),fetchers:new Map(y.fetchers)}),W=!1)}async function gn(E,S,x,M,V,ee,Q){let G=y.fetchers.get(E);Ot(E,Ao(Q,G?G.data:void 0),{flushSync:ee});let $=new AbortController,le=Ro(e.history,x,$.signal);z.set(E,$);let je=R,q=await To("loader",le,M,V,i,o,s,c.v7_relativeSplatPath);if(or(q)&&(q=await ev(q,le.signal,!0)||q),z.get(E)===$&&z.delete(E),!le.signal.aborted){if(ie.has(E)){Ot(E,Pn(void 0));return}if(ir(q))if(F>je){Ot(E,Pn(void 0));return}else{Z.add(E),await yn(y,q);return}if(Fr(q)){kn(E,S,q.error);return}ve(!or(q),"Unhandled fetcher deferred data"),Ot(E,Pn(q.data))}}async function yn(E,S,x){let{submission:M,fetcherSubmission:V,replace:ee}=x===void 0?{}:x;S.revalidate&&(W=!0);let Q=hi(E.location,S.location,{_isRedirect:!0});if(ve(Q,"Expected a location on the redirect navigation"),n){let me=!1;if(S.reloadDocument)me=!0;else if(Qm.test(S.location)){const Xe=e.history.createURL(S.location);me=Xe.origin!==t.location.origin||pa(Xe.pathname,s)==null}if(me){ee?t.location.replace(S.location):t.location.assign(S.location);return}}O=null;let G=ee===!0?we.Replace:we.Push,{formMethod:$,formAction:le,formEncType:je}=E.navigation;!M&&!V&&$&&le&&je&&(M=Pf(E.navigation));let q=M||V;if(KE.has(S.status)&&q&&Ft(q.formMethod))await Ye(G,Q,{submission:Ae({},q,{formAction:S.location}),preventScrollReset:P});else{let me=rs(Q,M);await Ye(G,Q,{overrideNavigation:me,fetcherSubmission:V,preventScrollReset:P})}}async function po(E,S,x,M,V){let ee=await Promise.all([...x.map($=>To("loader",V,$,S,i,o,s,c.v7_relativeSplatPath)),...M.map($=>$.matches&&$.match&&$.controller?To("loader",Ro(e.history,$.path,$.controller.signal),$.match,$.matches,i,o,s,c.v7_relativeSplatPath):{type:Te.error,error:xt(404,{pathname:$.path})})]),Q=ee.slice(0,x.length),G=ee.slice(x.length);return await Promise.all([_f(E,x,Q,Q.map(()=>V.signal),!1,y.loaderData),_f(E,M.map($=>$.match),G,M.map($=>$.controller?$.controller.signal:null),!0)]),{results:ee,loaderResults:Q,fetcherResults:G}}function wn(){W=!0,Y.push(...Ce()),B.forEach((E,S)=>{z.has(S)&&(ne.push(S),Bt(S))})}function Ot(E,S,x){x===void 0&&(x={}),y.fetchers.set(E,S),He({fetchers:new Map(y.fetchers)},{flushSync:(x&&x.flushSync)===!0})}function kn(E,S,x,M){M===void 0&&(M={});let V=Go(y.matches,S);En(E),He({errors:{[V.route.id]:x},fetchers:new Map(y.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function ho(E){return c.v7_fetcherPersist&&(se.set(E,(se.get(E)||0)+1),ie.has(E)&&ie.delete(E)),y.fetchers.get(E)||$E}function En(E){let S=y.fetchers.get(E);z.has(E)&&!(S&&S.state==="loading"&&U.has(E))&&Bt(E),B.delete(E),U.delete(E),Z.delete(E),ie.delete(E),y.fetchers.delete(E)}function mo(E){if(c.v7_fetcherPersist){let S=(se.get(E)||0)-1;S<=0?(se.delete(E),ie.add(E)):se.set(E,S)}else En(E);He({fetchers:new Map(y.fetchers)})}function Bt(E){let S=z.get(E);ve(S,"Expected fetch controller: "+E),S.abort(),z.delete(E)}function xi(E){for(let S of E){let x=ho(S),M=Pn(x.data);y.fetchers.set(S,M)}}function Ni(){let E=[],S=!1;for(let x of Z){let M=y.fetchers.get(x);ve(M,"Expected fetcher: "+x),M.state==="loading"&&(Z.delete(x),E.push(x),S=!0)}return xi(E),S}function Ti(E){let S=[];for(let[x,M]of U)if(M<E){let V=y.fetchers.get(x);ve(V,"Expected fetcher: "+x),V.state==="loading"&&(Bt(x),U.delete(x),S.push(x))}return xi(S),S.length>0}function va(E,S){let x=y.blockers.get(E)||No;return fe.get(E)!==S&&fe.set(E,S),x}function Ri(E){y.blockers.delete(E),fe.delete(E)}function K(E,S){let x=y.blockers.get(E)||No;ve(x.state==="unblocked"&&S.state==="blocked"||x.state==="blocked"&&S.state==="blocked"||x.state==="blocked"&&S.state==="proceeding"||x.state==="blocked"&&S.state==="unblocked"||x.state==="proceeding"&&S.state==="unblocked","Invalid blocker state transition: "+x.state+" -> "+S.state);let M=new Map(y.blockers);M.set(E,S),He({blockers:M})}function X(E){let{currentLocation:S,nextLocation:x,historyAction:M}=E;if(fe.size===0)return;fe.size>1&&hr(!1,"A router only supports one blocker at a time");let V=Array.from(fe.entries()),[ee,Q]=V[V.length-1],G=y.blockers.get(ee);if(!(G&&G.state==="proceeding")&&Q({currentLocation:S,nextLocation:x,historyAction:M}))return ee}function Ce(E){let S=[];return Ee.forEach((x,M)=>{(!E||E(M))&&(x.cancel(),S.push(M),Ee.delete(M))}),S}function gt(E,S,x){if(p=E,w=S,v=x||null,!k&&y.navigation===ns){k=!0;let M=Ai(y.location,y.matches);M!=null&&He({restoreScrollPosition:M})}return()=>{p=null,w=null,v=null}}function Sn(E,S){return v&&v(E,S.map(M=>kE(M,y.loaderData)))||E.key}function vo(E,S){if(p&&w){let x=Sn(E,S);p[x]=w()}}function Ai(E,S){if(p){let x=Sn(E,S),M=p[x];if(typeof M=="number")return M}return null}function hv(E){i={},a=uu(E,o,void 0,i)}return T={get basename(){return s},get future(){return c},get state(){return y},get routes(){return l},get window(){return t},initialize:Le,subscribe:Jt,enableScrollRestoration:gt,navigate:Mt,fetch:vn,revalidate:en,createHref:E=>e.history.createHref(E),encodeLocation:E=>e.history.encodeLocation(E),getFetcher:ho,deleteFetcher:mo,dispose:Kt,getBlocker:va,deleteBlocker:Ri,_internalFetchControllers:z,_internalActiveDeferreds:Ee,_internalSetRoutes:hv},T}function GE(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function cu(e,t,n,r,o,i,l,a){let s,c;if(l){s=[];for(let h of t)if(s.push(h),h.route.id===l){c=h;break}}else s=t,c=t[t.length-1];let d=Ym(o||".",DE(s,i),pa(e.pathname,n)||e.pathname,a==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&c&&c.route.index&&!yc(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:Xo([n,d.pathname])),mr(d)}function mf(e,t,n,r){if(!r||!GE(r))return{path:n};if(r.formMethod&&!nS(r.formMethod))return{path:n,error:xt(405,{method:r.formMethod})};let o=()=>({path:n,error:xt(400,{type:"invalid-body"})}),i=r.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),a=Jm(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ft(l))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((v,w)=>{let[k,C]=w;return""+v+k+"="+C+"\n"},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Ft(l))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch(p){return o()}}}ve(typeof FormData=="function","FormData is not available in this environment");let s,c;if(r.formData)s=du(r.formData),c=r.formData;else if(r.body instanceof FormData)s=du(r.body),c=r.body;else if(r.body instanceof URLSearchParams)s=r.body,c=wf(s);else if(r.body==null)s=new URLSearchParams,c=new FormData;else try{s=new URLSearchParams(r.body),c=wf(s)}catch(p){return o()}let d={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Ft(d.formMethod))return{path:n,submission:d};let h=Yn(n);return t&&h.search&&yc(h.search)&&s.append("index",""),h.search="?"+s,{path:mr(h),submission:d}}function QE(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function vf(e,t,n,r,o,i,l,a,s,c,d,h,p,v,w,k){let C=k?Object.values(k)[0]:w?Object.values(w)[0]:void 0,f=e.createURL(t.location),m=e.createURL(o),g=k?Object.keys(k)[0]:void 0,T=QE(n,g).filter((N,P)=>{let{route:O}=N;if(O.lazy)return!0;if(O.loader==null)return!1;if(i)return O.loader.hydrate?!0:t.loaderData[O.id]===void 0&&(!t.errors||t.errors[O.id]===void 0);if(ZE(t.loaderData,t.matches[P],N)||a.some(J=>J===N.route.id))return!0;let D=t.matches[P],j=N;return gf(N,Ae({currentUrl:f,currentParams:D.params,nextUrl:m,nextParams:j.params},r,{actionResult:C,defaultShouldRevalidate:l||f.pathname+f.search===m.pathname+m.search||f.search!==m.search||qm(D,j)}))}),y=[];return d.forEach((N,P)=>{if(i||!n.some(oe=>oe.route.id===N.routeId)||c.has(P))return;let O=Do(p,N.path,v);if(!O){y.push({key:P,routeId:N.routeId,path:N.path,matches:null,match:null,controller:null});return}let D=t.fetchers.get(P),j=fu(O,N.path),J=!1;h.has(P)?J=!1:s.includes(P)?J=!0:D&&D.state!=="idle"&&D.data===void 0?J=l:J=gf(j,Ae({currentUrl:f,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:C,defaultShouldRevalidate:l})),J&&y.push({key:P,routeId:N.routeId,path:N.path,matches:O,match:j,controller:new AbortController})}),[T,y]}function ZE(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function qm(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function gf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function yf(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];ve(o,"No route found in manifest");let i={};for(let l in r){let s=o[l]!==void 0&&l!=="hasErrorBoundary";hr(!s,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!s&&!yE.has(l)&&(i[l]=r[l])}Object.assign(o,i),Object.assign(o,Ae({},t(o),{lazy:void 0}))}async function To(e,t,n,r,o,i,l,a,s){s===void 0&&(s={});let c,d,h,p=k=>{let C,f=new Promise((m,g)=>C=g);return h=()=>C(),t.signal.addEventListener("abort",h),Promise.race([k({request:t,params:n.params,context:s.requestContext}),f])};try{let k=n.route[e];if(n.route.lazy)if(k){let C,f=await Promise.all([p(k).catch(m=>{C=m}),yf(n.route,i,o)]);if(C)throw C;d=f[0]}else if(await yf(n.route,i,o),k=n.route[e],k)d=await p(k);else if(e==="action"){let C=new URL(t.url),f=C.pathname+C.search;throw xt(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:Te.data,data:void 0};else if(k)d=await p(k);else{let C=new URL(t.url),f=C.pathname+C.search;throw xt(404,{pathname:f})}ve(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(k){c=Te.error,d=k}finally{h&&t.signal.removeEventListener("abort",h)}if(tS(d)){let k=d.status;if(UE.has(k)){let f=d.headers.get("Location");if(ve(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Qm.test(f))f=cu(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,f,a);else if(!s.isStaticRequest){let m=new URL(t.url),g=f.startsWith("//")?new URL(m.protocol+f):new URL(f),_=pa(g.pathname,l)!=null;g.origin===m.origin&&_&&(f=g.pathname+g.search+g.hash)}if(s.isStaticRequest)throw d.headers.set("Location",f),d;return{type:Te.redirect,status:k,location:f,revalidate:d.headers.get("X-Remix-Revalidate")!==null,reloadDocument:d.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:c===Te.error?Te.error:Te.data,response:d};let C;try{let f=d.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?d.body==null?C=null:C=await d.json():C=await d.text()}catch(f){return{type:Te.error,error:f}}return c===Te.error?{type:c,error:new Xm(k,d.statusText,C),headers:d.headers}:{type:Te.data,data:C,statusCode:d.status,headers:d.headers}}if(c===Te.error)return{type:c,error:d};if(eS(d)){var v,w;return{type:Te.deferred,deferredData:d,statusCode:(v=d.init)==null?void 0:v.status,headers:((w=d.init)==null?void 0:w.headers)&&new Headers(d.init.headers)}}return{type:Te.data,data:d}}function Ro(e,t,n,r){let o=e.createURL(Jm(t)).toString(),i={signal:n};if(r&&Ft(r.formMethod)){let{formMethod:l,formEncType:a}=r;i.method=l.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=du(r.formData):i.body=r.formData}return new Request(o,i)}function du(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function wf(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function qE(e,t,n,r,o){let i={},l=null,a,s=!1,c={};return n.forEach((d,h)=>{let p=t[h].route.id;if(ve(!ir(d),"Cannot handle redirect results in processLoaderData"),Fr(d)){let v=Go(e,p),w=d.error;r&&(w=Object.values(r)[0],r=void 0),l=l||{},l[v.route.id]==null&&(l[v.route.id]=w),i[p]=void 0,s||(s=!0,a=FE(d.error)?d.error.status:500),d.headers&&(c[p]=d.headers)}else or(d)?(o.set(p,d.deferredData),i[p]=d.deferredData.data):i[p]=d.data,d.statusCode!=null&&d.statusCode!==200&&!s&&(a=d.statusCode),d.headers&&(c[p]=d.headers)}),r&&(l=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:l,statusCode:a||200,loaderHeaders:c}}function kf(e,t,n,r,o,i,l,a){let{loaderData:s,errors:c}=qE(t,n,r,o,a);for(let d=0;d<i.length;d++){let{key:h,match:p,controller:v}=i[d];ve(l!==void 0&&l[d]!==void 0,"Did not find corresponding fetcher result");let w=l[d];if(!(v&&v.signal.aborted))if(Fr(w)){let k=Go(e.matches,p==null?void 0:p.route.id);c&&c[k.route.id]||(c=Ae({},c,{[k.route.id]:w.error})),e.fetchers.delete(h)}else if(ir(w))ve(!1,"Unhandled fetcher revalidation redirect");else if(or(w))ve(!1,"Unhandled fetcher deferred data");else{let k=Pn(w.data);e.fetchers.set(h,k)}}return{loaderData:s,errors:c}}function Ef(e,t,n,r){let o=Ae({},t);for(let i of n){let l=i.route.id;if(t.hasOwnProperty(l)?t[l]!==void 0&&(o[l]=t[l]):e[l]!==void 0&&i.route.loader&&(o[l]=e[l]),r&&r.hasOwnProperty(l))break}return o}function Go(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Sf(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function xt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&n&&r?a="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?a="defer() is not supported in actions":i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new Xm(e||500,l,new Error(a),!0)}function Cf(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ir(n))return{result:n,idx:t}}}function Jm(e){let t=typeof e=="string"?Yn(e):e;return mr(Ae({},t,{hash:""}))}function JE(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function or(e){return e.type===Te.deferred}function Fr(e){return e.type===Te.error}function ir(e){return(e&&e.type)===Te.redirect}function eS(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function tS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function nS(e){return jE.has(e.toLowerCase())}function Ft(e){return VE.has(e.toLowerCase())}async function _f(e,t,n,r,o,i){for(let l=0;l<n.length;l++){let a=n[l],s=t[l];if(!s)continue;let c=e.find(h=>h.route.id===s.route.id),d=c!=null&&!qm(c,s)&&(i&&i[s.route.id])!==void 0;if(or(a)&&(o||d)){let h=r[l];ve(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await ev(a,h,o).then(p=>{p&&(n[l]=p||n[l])})}}}async function ev(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Te.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Te.error,error:o}}return{type:Te.data,data:e.deferredData.data}}}function yc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function fu(e,t){let n=typeof t=="string"?Yn(t).search:t.search;if(e[e.length-1].route.index&&yc(n||""))return e[e.length-1];let r=$m(e);return r[r.length-1]}function Pf(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function rs(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function rS(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ao(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function oS(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Pn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function iS(e,t){try{let n=e.sessionStorage.getItem(Zm);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch(n){}}function lS(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Zm,JSON.stringify(n))}catch(r){hr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}const ha=u.createContext(null),wc=u.createContext(null),tv=u.createContext({popout:null}),nv=u.createContext({enabled:!1,firstActionDelay:0,interval:0}),on="showModal",ro="showPopout",Ln="blockForward",aS="vk-mini-app-navigation-block",rv="inflate",sS="*";function ov(e){var t,n;return(n=(t=e==null?void 0:e.match(/\/:[^\/]+/g))==null?void 0:t.map(r=>r.replace("/","")))!=null?n:[]}function kc(e,t){const n=ov(e),r=(o,i)=>{const l=i.replace(":","");if(!t[l])throw new Error("Missing parameter ".concat(l," while building route ").concat(e));return o.replace(i,t[l])};return n.reduce(r,e)}function iv(e,t=[]){return{state:e,match:e.matches.length?e.matches[e.matches.length-1]:void 0,panelsHistory:t}}function Io(e){return e.state&&on in e.state}function xf(e){return e.state&&ro in e.state}function lv(){return Math.random().toString(36).substring(2,9)}function uS(){const[,e]=u.useState(0);return()=>{e(Date.now())}}function Ec(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nf(e){const t={keepSearchParams:!0,state:{}};return Object.keys(e).some(n=>n in t)}function cS(e,t){const n=e.route;function r(i){return Object.keys(e.params).map(l=>{var a;return+!!((a=i.path)!=null&&a.includes(":".concat(l)))}).reduce((l,a)=>l+a,0)}const o=t.routes.filter(i=>{const l=i,a=ov(l.path).map(s=>s.replace(":",""));return!l.modal&&l.tab===n.tab&&l.panel===n.panel&&l.view===n.view&&l.root===n.root&&a.every(s=>Object.keys(e.params).includes(s))}).sort((i,l)=>r(i)-r(l)).pop();return o&&kc(o.path,e.params)}class av{constructor(t){this.actions=t,this.pointer=0,this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((n,r)=>{this.resolve=n,this.reject=r})}get isMultiAction(){return this.actions.length>1}get donePromise(){return this.promise}get finished(){return this.pointer>=this.actions.length}doNext(){this.finished||(this.actions[this.pointer](),this.pointer+=1),this.finished&&this.resolve()}}class dS{constructor(t,n,r,o){this.viewHistory=n,this.transactionExecutor=r,this.blockers=new Map,this.blockerId=0,this.router=t,this.setPopout=o}async push(t,n={},r={}){var s;const o=Nf(n),l={...o?n:r,replace:!!((s=this.router.state.location.state)!=null&&s[Ln])},a=o?{}:n;await this.navigate(t,l,a)}async replace(t,n={},r={}){const o=Nf(n),i=o?n:r,l=o?{}:n;await this.navigate(t,{...i,replace:!0},l)}async back(t=1){t!==0&&await this.go(-Math.abs(t))}async backToFirst(){this.viewHistory.position>0?await this.go(-this.viewHistory.position):await this.transactionExecutor.doNext()}async go(t){t===0?await this.transactionExecutor.doNext():await this.router.navigate(t)}runSync(t){const n=new av(t);return this.transactionExecutor.add(n),this.transactionExecutor.doNext(),n.donePromise}async showModal(t){await this.router.navigate(this.router.state.location,{state:{[on]:t,[Ln]:!0},replace:Io(this.router.state.location)})}async hideModal(t=!1){if(!t&&!this.viewHistory.isFirstPage||Io(this.router.state.location))await this.router.navigate(-1);else{const n=this.router.state.matches.find(r=>"modal"in r.route);if(n){const r=n.route,o=cS(n,this.router);if(!o){const i=r.root?"root: ".concat(r.root," "):"";throw new Error("There is no route registered for panel with ".concat(i,", view: ").concat(r.view,", panel: ").concat(r.panel,".\nMake sure this route exists or use hideModal with pushPanel set to false."))}await this.navigate(o,{keepSearchParams:!0})}else await this.transactionExecutor.doNext()}}async showPopout(t){this.setPopout(t);const n={[ro]:lv(),[Ln]:!0};Io(this.router.state.location)&&(n[on]=this.router.state.location.state[on]);const r=Io(this.router.state.location)||xf(this.router.state.location);await this.router.navigate(this.router.state.location,{state:n,replace:r})}async hidePopout(){xf(this.router.state.location)?(this.setPopout(null),Io(this.router.state.location)?await this.router.navigate(this.router.state.location,{state:{[Ln]:!0,[on]:this.router.state.location.state[on]},replace:!0}):await this.router.navigate(-1)):await this.transactionExecutor.doNext()}block(t){const n=(++this.blockerId).toString();this.blockers.set(n,t);const r=o=>Array.from(this.blockers.values()).some(i=>i(o));return this.router.getBlocker(aS,r),()=>{this.blockers.delete(n)}}async navigate(t,n,r={}){let o=typeof t=="string"?t:t.hasParams?kc(t.path,r):t.path;n!=null&&n.keepSearchParams&&(o+=this.router.state.location.search),await this.router.navigate(o,n)}}const fS={background:"#3f5d81 url(https://vk.com/images/error404.png) no-repeat 50% 50%",width:"100%",height:"100%",overflow:"hidden",margin:"0",cursor:"pointer",backgroundSize:"contain"};function pS({routeNavigator:e}){return ae.jsx("div",{onClick:()=>void e.replace("/"),className:"default-not-found",style:fS})}class hS{constructor(){this.history=[],this.positionInternal=-1}updateNavigation(t){const n=this.getViewRecordFromState(t);if(n)switch(t.historyAction){case we.Push:this.push(n);break;case we.Pop:this.hasKey(n.locationKey)?this.pop(n):this.push(n);break;case we.Replace:this.replace(n);break}}get isFirstPage(){return this.positionInternal<1}get panelsHistory(){if(this.positionInternal<0)return[];const t=this.history[this.positionInternal].view,n=this.history.slice(0,this.positionInternal+1).reverse(),r=n.findIndex(i=>i.view!==t);return n.slice(0,r>-1?r:n.length).filter(i=>!i.modal&&!i.popout).reverse().map(({panel:i})=>i)}get position(){return this.positionInternal}isPopForward(t,n){const r=this.history.findIndex(({locationKey:o})=>o===n);return t===we.Pop&&r>this.position}isPopBackward(t,n){const r=this.history.findIndex(({locationKey:o})=>o===n);return t===we.Pop&&r<=this.position}resetHistory(){this.positionInternal=-1,this.history=[]}push(t){this.history=this.history.slice(0,this.positionInternal+1),this.history.push(t),this.positionInternal=this.history.length-1}replace(t){this.history[this.positionInternal]=t}pop(t){this.positionInternal=this.history.findIndex(({locationKey:n})=>n===t.locationKey)}hasKey(t){return!!this.history.find(({locationKey:n})=>n===t)}getViewRecordFromState(t){var o;const n=iv(t);if(!n.match)return;const{route:r}=n.match;return{view:r.view,panel:r.panel,modal:"modal"in r?r.modal:void 0,popout:(o=t.location.state)==null?void 0:o[ro],locationKey:t.location.key}}}const Ji=[];function mS(e,t,n){u.useEffect(()=>{const r=({historyAction:i,nextLocation:l})=>{var c;return!!(t.isPopForward(i,l.key)&&l.key!=="default"&&((c=l.state)!=null&&c[Ln]))},o=n.block(r);return()=>o()},[n,t]),u.useEffect(()=>{e.subscribe(r=>{var l,a,s,c,d,h,p;const o=r.location.key;if(t.isPopBackward(r.historyAction,o)&&((l=r.location.state)!=null&&l[Ln])&&!Ji.includes(o)){Ji.push(o);const v={...window.history.state};(a=v.usr)!=null&&a[on]&&(v.usr={...v.usr},(s=v.usr)==null||delete s[on],(c=v.usr)==null||delete c[Ln]),(d=v.usr)!=null&&d[ro]&&(v.usr={...v.usr},(h=v.usr)==null||delete h[ro],(p=v.usr)==null||delete p[Ln]),window.history.replaceState(v,""),e.navigate(-1).then(()=>Ji.splice(Ji.findIndex(w=>w===o),1))}})},[e,t])}class Tf{constructor(t){this.forceUpdate=t,this.transactions=[]}get initialDelay(){return this.transactions.length>1||this.transactions.length>0&&this.transactions[0].isMultiAction?100:0}add(t){this.transactions.push(t),this.forceUpdate()}async doNext(){setTimeout(()=>{this.transactions.length&&(this.transactions[0].doNext(),this.transactions[0].finished&&this.transactions.shift())})}}function vS(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[])}function sv(e=""){const t=typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams;return new URLSearchParams(t?e:vS(e))}function uv(e,t){return e.map(n=>{const r={...n,parents:t};return n.children?uv(n.children,[...t,r]):r}).flat()}function gS(e,t,n,r){var d,h,p;const o=uv(e,[]),i=n.state.location,l=(h=(d=n.match)==null?void 0:d.params)!=null?h:{},a=(p=n.match)==null?void 0:p.route.path,s=o.find(v=>v.path===a);if(!s)return;const c=s.parents.map(({path:v})=>kc(v,l));setTimeout(()=>{if(c.length){const v=sv(i.search);v.delete(rv);const w=v.toString().length>0?"?".concat(v.toString()):"",k="".concat(i.pathname).concat(w).concat(i.hash),C=c.shift(),f=[()=>t.replace(C),...c.map(g=>()=>t.push(g)),()=>t.push(k)],m=new av(f);r.add(m),r.doNext()}})}const cv=()=>{let e=window.location.href,t=e.indexOf("#");return t===-1?e:e.slice(0,t)};function yS({router:e,children:t,notFound:n,hierarchy:r,notFoundRedirectPath:o,interval:i=400,useBridge:l=!0,throttled:a=!0}){var y,N;const s=uS(),[c,d]=u.useState(null),[h]=u.useState(new hS),[p,v]=u.useState([]),[w,k]=u.useState(new Tf(s)),C=(y=e.state.location.state)==null?void 0:y[ro],f=u.useMemo(()=>{const P=new dS(e,h,w,d);return{router:e,routeNavigator:P,viewHistory:h}},[e,h,w,d]),m=u.useMemo(()=>({enabled:a||!!w.initialDelay,firstActionDelay:w.initialDelay,interval:i}),[w.initialDelay,i,a]),g=u.useMemo(()=>iv(e.state,p),[e.state,p]),_=u.useMemo(()=>({popout:C?c:null}),[C,c]);mS(e,h,f.routeNavigator),u.useEffect(()=>{history.scrollRestoration="manual",h.resetHistory(),h.updateNavigation({...e.state,historyAction:we.Push}),v(h.panelsHistory),e.subscribe(j=>{h.updateNavigation(j),v(h.panelsHistory),w.doNext()}),l&&(ft.subscribe(j=>{j.detail.type==="VKWebAppChangeFragment"&&e.navigate(j.detail.data.location,{replace:!0})}),e.subscribe(j=>{const J=e.createHref(j.location),oe=cv(),W=J.replace(oe,"").replace(/^#/,"");ft.send("VKWebAppSetLocation",{location:W,replace_state:!0})}));const P=new Tf(s);k(P);const D=!!sv(e.state.location.search).get(rv);r&&D&&gS(r,f.routeNavigator,g,P)},[e]);const T=!!(!g.match||g.state.errors&&g.state.errors[g.match.route.id]&&g.state.errors[g.match.route.id].status===404);return o&&(T||((N=g.match)==null?void 0:N.route.path)===sS)&&(e.state.location.pathname===o?console.warn("Incorrect notFoundRedirectPath"):f.routeNavigator.replace(o)),ae.jsx(ha.Provider,{value:f,children:ae.jsx(nv.Provider,{value:m,children:ae.jsxs(tv.Provider,{value:_,children:[T&&(n||ae.jsx(pS,{routeNavigator:f.routeNavigator})),!T&&ae.jsx(wc.Provider,{value:g,children:t})]})})})}const wS=()=>{};function ma(e){const{enabled:t,interval:n,firstActionDelay:r}=u.useContext(nv),o=u.useRef(null),i=u.useContext(e),l=u.useRef(0),a=u.useRef(0),s=u.useRef(null),[c,d]=u.useState(i);if(!t){const v=o.current;return o.current=i,[i,v,wS]}u.useEffect(()=>{const v=Date.now()-l.current,w=n-v,k=w<=0?r:0,C=Math.max(k,w);return o.current=c,C<=0?(l.current=Date.now(),d(i)):(clearTimeout(a.current),s.current=()=>{s.current=null,l.current=Date.now(),d(i)},a.current=setTimeout(s.current,C)),()=>clearTimeout(a.current)},[i]);const h=u.useCallback(()=>(l.current=0,s.current&&(clearTimeout(a.current),a.current=setTimeout(s.current,1)),()=>clearTimeout(a.current)),[]),p=o.current;return[c,p,h]}function Sc(){const[e]=ma(ha);return Ec(e,"You can not use useNavigator hook outside of RouterContext. Make sure calling it inside RouterProvider."),e.routeNavigator}function dv(){const[e]=ma(wc);return Ec(e,"You can not use useLocation hook outside of RouteContext. Make sure calling it inside RouterProvider."),e.state.location}function kS(){const[e]=ma(tv);return e.popout}function ES(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function fv(e,{relative:t}={}){const{router:{state:{matches:n}}}=u.useContext(ha),{pathname:r}=dv(),o=JSON.stringify(ES(n).map(i=>i.pathnameBase));return u.useMemo(()=>Ym(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function SS(e,{relative:t}={}){const n=u.useContext(ha);Ec(n,"You can not use useHref hook outside of RouteContext. Make sure calling it inside RouterProvider.");const{hash:r,pathname:o,search:i}=fv(e,{relative:t}),l=cv(),s=n.router.createHref({pathname:o,search:i,hash:r}).replace(l,"");return s.startsWith("/")?s:"/"+s}function CS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _S(e,t){return e.button===0&&(!t||t==="_self")&&!CS(e)}function PS(e,{target:t,replace:n,preventScrollReset:r,relative:o}={}){const i=Sc(),l=dv(),a=fv(e,{relative:o});return u.useCallback(s=>{if(_S(s,t)){s.preventDefault();const c=mr(a);(n!==void 0?n:mr(l)===c)?i.replace(c):i.push(c)}},[l,i,a,n,t,e,r,o])}const xS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,NS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";u.forwardRef(function({to:e,relative:t,replace:n,target:r,reloadDocument:o,onClick:i,...l},a){let s,c=!1;if(typeof e=="string"&&xS.test(e)&&(s=e,NS)){const v=new URL(window.location.href),w=e.startsWith("//")?new URL(v.protocol+e):new URL(e),k=w.pathname;w.origin===v.origin?e=k+w.search+w.hash:c=!0}const d=SS(e,{relative:t}),h=PS(e,{replace:n,target:r,relative:t});function p(v){i&&i(v),v.defaultPrevented||h(v)}return ae.jsx(sE,{...l,href:s||d,onClick:c||o?i:p,getRootRef:a,target:r})});class Vr{constructor(t){this._value=t}static init(t){Vr._instance||(Vr._instance=new Vr(t))}static get value(){var t;return(t=Vr._instance)==null?void 0:t._value}}function TS(e){window.addEventListener("popstate",n=>{n.state||window.history.replaceState({key:lv()},"")});const t=mE();return Vr.init(t.location),XE({history:t,routes:e.map(n=>({...n,index:!0}))}).initialize()}function RS(){var a,s;const[e]=ma(wc),t=kS(),{match:n,state:r,panelsHistory:o}=e,i=n==null?void 0:n.route,l=(s=(a=r.location.state)==null?void 0:a[on])!=null?s:i&&"modal"in i?i.modal:void 0;return{root:i&&"root"in i?i.root:void 0,view:i==null?void 0:i.view,panel:i==null?void 0:i.panel,tab:i==null?void 0:i.tab,modal:l,hasOverlay:!!(l||t),panelsHistory:o}}function Pi(e,t){if(t&&t.length&&typeof e=="object"&&e.hasOwnProperty(t)){const n="".concat(t,"_0");return e.hasOwnProperty(n)?Pi(e,n):n}return t}class AS{constructor(t,n){this.id=t,this.panels=n,n.forEach(r=>{this[Pi(this,r.id)]=r})}get children(){return this.panels}getRoutes(){return this.panels.map(t=>t.getRoutes()).flat().map(t=>({...t,view:this.id}))}}function IS(e,t){return new AS(e,t)}class LS{constructor(t,n){if(this.id=t,this.views=n,!n.length)throw new Error("Trying to create root ".concat(t," without views. Root must have at least one view."));n.forEach(r=>{this[Pi(this,r.id)]=r})}get children(){return this.views}getRoutes(){return this.views.map(t=>t.getRoutes()).flat().map(t=>({...t,root:this.id}))}}function MS(e,t){return new LS(e,t)}class pv{constructor(t,n,r){this.id=t,this.path=n,this.modals=r,r.forEach(o=>{this[Pi(this,o.id)]=o})}getRoutes(){return this.modals.map(t=>t.getRoutes()).flat().map(t=>({...t,panel:this.id})).concat({path:this.path,panel:this.id})}}class OS extends pv{constructor(t,n,r=[]){super(t,n,r),this.path=n,this.hasParams=!1}}class BS extends pv{constructor(t,n,r,o=[]){super(t,n,o),this.id=t,this.path=n,this.paramKeys=r,this.hasParams=!0}}function Rf(e,t,n,r){return r?new BS(e,t,r,n!=null?n:[]):new OS(e,t,n!=null?n:[])}class Cc{constructor(){this.items=[]}getRoutes(){return this.items.map(t=>t.getRoutes()).flat()}static create(t){const n=new Cc;return n.items=t,t.forEach(r=>{n[Pi(n,r.id)]=r}),n}}const DS=IS,bS=({type:e,viewportWidth:t,viewportHeight:n})=>{switch(e){case"adaptive":return{viewWidth:s1(t),viewHeight:u1(n)};case"force_mobile":case"force_mobile_compact":return{viewWidth:be.MOBILE,sizeX:ml.COMPACT,sizeY:e==="force_mobile_compact"?ml.COMPACT:ml.REGULAR};default:return{}}},zS="default_root",HS="default_view",vl={HOME:"home",PERSIK:"persik"},FS=Cc.create([MS(zS,[DS(HS,[Rf(vl.HOME,"/",[]),Rf(vl.PERSIK,"/".concat(vl.PERSIK),[])])])]),VS=TS(FS.getRoutes()),WS=""+new URL("persik-DUm5YSvO.png",import.meta.url).href,jS=({id:e})=>{const t=Sc();return ae.jsxs(Nm,{id:e,children:[ae.jsx(Im,{before:ae.jsx(fE,{onClick:()=>t.back()}),children:"Persik"}),ae.jsx(fo,{children:ae.jsx("img",{width:230,src:WS,alt:"Persik The Cat"})})]})},US=({id:e,fetchedUser:t})=>{const{photo_200:n,city:r,first_name:o,last_name:i}={...t},l=Sc();return ae.jsxs(Nm,{id:e,children:[ae.jsx(Im,{children:"Главная"}),t&&ae.jsx(lf,{header:ae.jsx(of,{mode:"secondary",children:"User Data Fetched with VK Bridge"}),children:ae.jsx(Bm,{before:n&&ae.jsx(_i,{src:n}),subtitle:r==null?void 0:r.title,children:"".concat(o," ").concat(i)})}),ae.jsx(lf,{header:ae.jsx(of,{mode:"secondary",children:"Navigation Example"}),children:ae.jsx(cE,{children:ae.jsx(Lw,{stretched:!0,size:"l",mode:"secondary",onClick:()=>l.push("persik"),children:"Покажите Персика, пожалуйста!"})})})]})},KS=()=>{const{panel:e=vl.HOME}=RS(),[t,n]=u.useState(),[r,o]=u.useState(ae.jsx(Pk,{size:"large"}));return u.useEffect(()=>{async function i(){const l=await ft.send("VKWebAppGetUserInfo");n(l),o(null)}i()},[]),ae.jsx(mk,{popout:r,children:ae.jsx(wk,{children:ae.jsxs(Yw,{activePanel:e,children:[ae.jsx(US,{id:"home",fetchedUser:t}),ae.jsx(jS,{id:"persik"})]})})})},$S=()=>{const e=ty()||void 0,t=iy()||void 0,n=bS(Jg()),{vk_platform:r}=Zg(window.location.search);return ae.jsx(hE,{appearance:e,platform:r==="desktop_web"?"vkcom":void 0,isWebView:ft.isWebView(),hasCustomPanelHeaderAfter:!0,children:ae.jsx(uE,{...n,children:ae.jsx(Zy,{mode:"full",safeAreaInsets:t,children:ae.jsx(yS,{router:VS,children:ae.jsx(KS,{})})})})})};ft.send("VKWebAppInit");Uh(document.getElementById("root")).render(ae.jsx($S,{}));export{YS as __vite_legacy_guard};
